Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(web): nest segmented control radii inside their containers

Tinbd8ad7132f84
diff --git a/apps/web/src/components/import/connect-forms/planka-connect-form.tsx b/apps/web/src/components/import/connect-forms/planka-connect-form.tsx
index 0a7649fb8..8a498e866 100644
--- a/apps/web/src/components/import/connect-forms/planka-connect-form.tsx
+++ b/apps/web/src/components/import/connect-forms/planka-connect-form.tsx
@@ -62,14 +62,14 @@ export function PlankaConnectForm({
<ToggleGroupItem
value="apiKey"
size="sm"
- className="h-full flex-1 sm:h-full"
+ className="h-full flex-1 rounded-[calc(var(--radius-lg)-3px)] sm:h-full"
>
{t("settings:workspaceImport.planka.signInApiKey")}
</ToggleGroupItem>
<ToggleGroupItem
value="password"
size="sm"
- className="h-full flex-1 sm:h-full"
+ className="h-full flex-1 rounded-[calc(var(--radius-lg)-3px)] sm:h-full"
>
{t("settings:workspaceImport.planka.signInPassword")}
</ToggleGroupItem>
diff --git a/apps/web/src/components/project/views/layout-switch.tsx b/apps/web/src/components/project/views/layout-switch.tsx
index 70e2a028f..0feb88e82 100644
--- a/apps/web/src/components/project/views/layout-switch.tsx
+++ b/apps/web/src/components/project/views/layout-switch.tsx
@@ -39,7 +39,7 @@ export function LayoutSwitch({
aria-pressed={active}
onClick={() => goToView(layout.id)}
className={cn(
- "flex h-13 flex-col items-center justify-center gap-1 rounded-md text-xs font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring",
+ "flex h-13 flex-col items-center justify-center gap-1 rounded-[calc(var(--radius-lg)-5px)] text-xs font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring",
active
? "bg-accent text-foreground"
: "text-muted-foreground hover:bg-accent/50 hover:text-foreground",
diff --git a/apps/web/src/components/project/views/project-scope-link.tsx b/apps/web/src/components/project/views/project-scope-link.tsx
index 0f567d104..65b51f99d 100644
--- a/apps/web/src/components/project/views/project-scope-link.tsx
+++ b/apps/web/src/components/project/views/project-scope-link.tsx
@@ -33,7 +33,7 @@ export function ProjectScopeLink({
onSelect(view);
}}
className={cn(
- "inline-flex h-6 items-center rounded-md px-2.5 text-[13px] font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring",
+ "inline-flex h-6 items-center rounded-[calc(var(--radius-lg)-3px)] px-2.5 text-[13px] font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring",
active
? "bg-accent text-foreground shadow-xs/5"
: "text-muted-foreground hover:text-foreground",
diff --git a/apps/web/src/components/settings/api-keys/api-key-expiry-toggle.tsx b/apps/web/src/components/settings/api-keys/api-key-expiry-toggle.tsx
index 342a05a2e..3d2608bf4 100644
--- a/apps/web/src/components/settings/api-keys/api-key-expiry-toggle.tsx
+++ b/apps/web/src/components/settings/api-keys/api-key-expiry-toggle.tsx
@@ -36,7 +36,7 @@ export function ApiKeyExpiryToggle({
key={option.value}
value={option.value}
size="sm"
- className="h-full flex-1 text-muted-foreground data-pressed:text-foreground sm:h-full"
+ className="h-full flex-1 rounded-[calc(var(--radius-lg)-3px)] text-muted-foreground data-pressed:text-foreground sm:h-full"
>
{t(option.labelKey)}
</ToggleGroupItem>
diff --git a/apps/web/src/components/settings/notifications/workspaces/workspace-rule-project-list.tsx b/apps/web/src/components/settings/notifications/workspaces/workspace-rule-project-list.tsx
index 48ee61fc5..d1bd17a54 100644
--- a/apps/web/src/components/settings/notifications/workspaces/workspace-rule-project-list.tsx
+++ b/apps/web/src/components/settings/notifications/workspaces/workspace-rule-project-list.tsx
@@ -38,7 +38,7 @@ export function WorkspaceRuleProjectList({
return (
<label
key={project.id}
- className="flex min-h-8 cursor-pointer items-center gap-2.5 rounded-md px-2 py-1 text-sm hover:bg-accent/50"
+ className="flex min-h-8 cursor-pointer items-center gap-2.5 rounded-[calc(var(--radius-lg)-5px)] px-2 py-1 text-sm hover:bg-accent/50"
htmlFor={id}
>
<Checkbox
diff --git a/apps/web/src/components/settings/notifications/workspaces/workspace-rule-projects.tsx b/apps/web/src/components/settings/notifications/workspaces/workspace-rule-projects.tsx
index f05ef1deb..4e7d37372 100644
--- a/apps/web/src/components/settings/notifications/workspaces/workspace-rule-projects.tsx
+++ b/apps/web/src/components/settings/notifications/workspaces/workspace-rule-projects.tsx
@@ -14,7 +14,7 @@ type WorkspaceRuleProjectsProps = {
};
const segmentClassName =
- "h-7 flex-1 rounded-md px-3 text-[13px] font-normal text-muted-foreground hover:bg-transparent hover:text-foreground data-pressed:bg-background data-pressed:font-medium data-pressed:text-foreground data-pressed:shadow-xs/5 dark:data-pressed:bg-input sm:h-7";
+ "h-7 flex-1 rounded-[calc(var(--radius-lg)-3px)] px-3 text-[13px] font-normal text-muted-foreground hover:bg-transparent hover:text-foreground data-pressed:bg-background data-pressed:font-medium data-pressed:text-foreground data-pressed:shadow-xs/5 dark:data-pressed:bg-input sm:h-7";
export function WorkspaceRuleProjects({
workspaceId,
diff --git a/apps/web/src/components/settings/preferences/default-view-row.tsx b/apps/web/src/components/settings/preferences/default-view-row.tsx
index 6a021bb51..6c74ba555 100644
--- a/apps/web/src/components/settings/preferences/default-view-row.tsx
+++ b/apps/web/src/components/settings/preferences/default-view-row.tsx
@@ -24,10 +24,16 @@ export function DefaultViewRow() {
aria-label={t("settings:preferencesPage.defaultView")}
className="w-full rounded-lg border border-input bg-background p-0.5 sm:w-48 dark:bg-input/32"
>
- <ToggleGroupItem value="board" className="h-7 flex-1 sm:h-6">
+ <ToggleGroupItem
+ value="board"
+ className="h-7 flex-1 rounded-[calc(var(--radius-lg)-3px)] sm:h-6"
+ >
{t("settings:preferencesPage.board")}
</ToggleGroupItem>
- <ToggleGroupItem value="list" className="h-7 flex-1 sm:h-6">
+ <ToggleGroupItem
+ value="list"
+ className="h-7 flex-1 rounded-[calc(var(--radius-lg)-3px)] sm:h-6"
+ >
{t("settings:preferencesPage.list")}
</ToggleGroupItem>
</ToggleGroup>