style(web): fix inconsistencies in new settings layouts (#10177)

Co-authored-by: shivam <[email protected]>
This commit is contained in:
Exoticandshivam authored and GitHub committed 2026-09-06 22:49:01 +05:30
1 parent 64fafbdfcf
commit 29d03ec556
3 files changed
+9 -6

No files matched your search

@@ -395,7 +395,7 @@ function formatDesktopSshConnectionError(error: unknown): string {
return withoutTaggedErrorPrefix.trim() || fallback;
}
const ENDPOINT_ROW_CLASSNAME = "rounded-xl px-3 py-2.5 sm:px-4";
const ENDPOINT_ROW_CLASSNAME = "first:rounded-t-xl last:rounded-b-xl px-3 py-2.5 sm:px-4";
type AccessSectionPresentation = "current" | "endpoint-rail";
@@ -405,7 +405,10 @@ function accessRowClassName(_presentation: AccessSectionPresentation) {
function endpointRowClassName(presentation: AccessSectionPresentation, isAvailable: boolean) {
if (presentation === "endpoint-rail") {
return cn("relative rounded-xl px-3 py-3 sm:px-4", !isAvailable && "bg-muted/15");
return cn(
"relative first:rounded-t-xl last:rounded-b-xl px-3 py-3 sm:px-4",
!isAvailable && "bg-muted/15",
);
}
return cn(ENDPOINT_ROW_CLASSNAME, !isAvailable && "bg-muted/24");
@@ -282,7 +282,7 @@ function DiscoveryItemRow({
return (
<div
className={cn(
"rounded-xl transition-colors hover:bg-muted/20",
"first:rounded-t-xl last:rounded-b-xl transition-colors hover:bg-muted/20",
isVcsNotReady(item) && "opacity-80",
)}
>
@@ -432,7 +432,7 @@ function SourceControlSectionSkeleton({
return (
<SettingsSection title={title} headerAction={headerAction}>
{SOURCE_CONTROL_SKELETON_ROWS.map((row) => (
<div key={row} className="rounded-xl px-3 py-3 sm:px-4">
<div key={row} className="first:rounded-t-xl last:rounded-b-xl px-3 py-3 sm:px-4">
<div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
<div className="min-w-0 flex-1 space-y-2">
<div className="flex items-center gap-2">
+2 -2
View File
@@ -1,5 +1,5 @@
/** Direct row in a settings section. Whitespace, rather than rules, separates peers. */
export const ITEM_ROW_CLASSNAME = "rounded-xl px-3 py-3 sm:px-4";
/** Direct row in a grouped settings section. Round only outer corners; the parent owns borders and separators. */
export const ITEM_ROW_CLASSNAME = "first:rounded-t-xl last:rounded-b-xl px-3 py-3 sm:px-4";
export const ITEM_ROW_INNER_CLASSNAME =
"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between";