⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
fix(web): mirror the issue detail sidebar and header for right-to-left (#155)
Croffddaad0311b24
diff --git a/apps/web/src/components/layout/AppHeader.tsx b/apps/web/src/components/layout/AppHeader.tsxindex 7ffb2423..77e74ccc 100644--- a/apps/web/src/components/layout/AppHeader.tsx+++ b/apps/web/src/components/layout/AppHeader.tsx@@ -36,18 +36,21 @@ export default function AppHeader({return (<header className="flex h-12 shrink-0 items-center gap-2 border-b px-2 sm:px-4"><SidebarTrigger />- <Separator orientation="vertical" className="mr-1 h-4" />+ <Separator orientation="vertical" className="me-1 h-4" /><div className="min-w-0 truncate text-sm font-medium">{title}</div><buttontype="button"onClick={onOpenCommand}title={t('searchHint', { key: paletteKey ?? '' })}- className="ml-auto flex size-8 shrink-0 items-center justify-center rounded-md border text-sm text-muted-foreground transition-colors hover:bg-accent sm:w-auto sm:max-w-xs sm:min-w-0 sm:flex-1 sm:shrink sm:justify-start sm:gap-2 sm:px-3"+ className="ms-auto flex size-8 shrink-0 items-center justify-center rounded-md border text-sm text-muted-foreground transition-colors hover:bg-accent sm:w-auto sm:max-w-xs sm:min-w-0 sm:flex-1 sm:shrink sm:justify-start sm:gap-2 sm:px-3"><Search className="size-4 shrink-0" /><span className="hidden truncate sm:inline">{t('search')}</span>- <kbd className="ml-auto hidden rounded bg-muted px-1.5 py-0.5 font-mono text-[11px] sm:inline">+ <kbd+ dir="ltr"+ className="ms-auto hidden rounded bg-muted px-1.5 py-0.5 font-mono text-[11px] sm:inline"+ >{paletteKey}</kbd></button>diff --git a/apps/web/src/components/layout/IssueBreadcrumb.tsx b/apps/web/src/components/layout/IssueBreadcrumb.tsxindex 1cc609b2..03b5b918 100644--- a/apps/web/src/components/layout/IssueBreadcrumb.tsx+++ b/apps/web/src/components/layout/IssueBreadcrumb.tsx@@ -26,7 +26,7 @@ export default function IssueBreadcrumb({</Link>{parent && projectKey && (<>- <ChevronRight className="size-3.5 shrink-0 text-muted-foreground" />+ <ChevronRight className="size-3.5 shrink-0 text-muted-foreground rtl:rotate-180" /><Linkhref={issuePath(projectKey, parent.sequenceNumber)}className="truncate text-muted-foreground hover:text-foreground"@@ -35,7 +35,7 @@ export default function IssueBreadcrumb({</Link></>)}- <ChevronRight className="size-3.5 shrink-0 text-muted-foreground" />+ <ChevronRight className="size-3.5 shrink-0 text-muted-foreground rtl:rotate-180" /><span className="truncate font-medium">{identifier ?? '…'}</span></span>);diff --git a/apps/web/src/features/issue/components/detail/IssueDetail.tsx b/apps/web/src/features/issue/components/detail/IssueDetail.tsxindex c40d7ea3..7cb12903 100644--- a/apps/web/src/features/issue/components/detail/IssueDetail.tsx+++ b/apps/web/src/features/issue/components/detail/IssueDetail.tsx@@ -7,7 +7,7 @@ import { useExitOnEscape } from '@/hooks/useExitOnEscape';import { Button } from '@/components/ui/button';import { useTranslations } from 'next-intl';-// The issue detail as a right-hand side panel over the project. Expand opens the+// The issue detail as a side panel over the project, at the end edge. Expand opens the// same issue as a full page; the shared body lives in IssueDetailContent.export default function IssueDetail({project,@@ -35,7 +35,7 @@ export default function IssueDetail({>{/* No padding at the top: the sticky header carries it, so it can sit flushagainst the panel edge with nothing showing above it. */}- <div className="ml-auto flex h-full w-full flex-col overflow-y-auto border-l bg-card px-5 pt-0 pb-5 sm:w-[720px] sm:max-w-[92vw] sm:px-8">+ <div className="ms-auto flex h-full w-full flex-col overflow-y-auto border-s bg-card px-5 pt-0 pb-5 sm:w-[720px] sm:max-w-[92vw] sm:px-8">{/* The header stays at the top while the body scrolls under it. Negativemargins cancel the panel padding so its translucent, blurred backdropspans the full panel width. */}diff --git a/apps/web/src/features/issue/components/detail/IssueDetailContent.tsx b/apps/web/src/features/issue/components/detail/IssueDetailContent.tsxindex 2585e600..dcdcc39f 100644--- a/apps/web/src/features/issue/components/detail/IssueDetailContent.tsx+++ b/apps/web/src/features/issue/components/detail/IssueDetailContent.tsx@@ -213,15 +213,15 @@ export default function IssueDetailContent({);if (layout === 'page') {- // From xl the issue content is left-aligned and the actions with Properties- // are fixed to the right edge (out of flow), so they never shift the content;- // the right margin reserves their width so the two do not overlap. Below xl- // there is no room for two columns, so the same two blocks are shown inside- // the content column instead — the actions above the title, Properties under- // the description.+ // From xl the issue content sits at the start edge and the actions with+ // Properties are fixed to the end edge (out of flow), so they never shift the+ // content; the end margin reserves their width so the two do not overlap.+ // Below xl there is no room for two columns, so the same two blocks are shown+ // inside the content column instead — the actions above the title, Properties+ // under the description.return (<>- <div className="max-w-3xl xl:mr-[340px]">+ <div className="max-w-3xl xl:me-[340px]">{/* Stuck to the top of the scrolling page, with the same translucent,blurred backdrop the side panel's header uses. The negative topmargin cancels the page's padding so the row starts where the title@@ -234,7 +234,7 @@ export default function IssueDetailContent({{sections}{activity}</div>- <aside className="hidden xl:fixed xl:top-16 xl:right-6 xl:block xl:max-h-[calc(100vh-5.5rem)] xl:w-[340px] xl:overflow-y-auto">+ <aside className="hidden xl:fixed xl:end-6 xl:top-16 xl:block xl:max-h-[calc(100vh-5.5rem)] xl:w-[340px] xl:overflow-y-auto">{actions}{sidebarProperties}</aside>