Skip to content

Commit 9ee5ac3

Browse files
committed
Format sidebar surface style ternary
- Keep the floating sidebar surface style logic on one expression - Preserve existing behavior while improving readability
1 parent 4ebc863 commit 9ee5ac3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/web/src/components/ui/sidebar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ function Sidebar({
239239
const chromeVars = React.useMemo(() => resolveSidebarChromeVars(style), [style]);
240240
const isInsetVariant = variant === "floating" || variant === "inset";
241241
const floatingSurfaceStyle = React.useMemo(
242-
() => (variant === "floating" ? getSidebarSurfaceStyle({ shadow: true }) : getSidebarSurfaceStyle()),
242+
() =>
243+
variant === "floating" ? getSidebarSurfaceStyle({ shadow: true }) : getSidebarSurfaceStyle(),
243244
[variant],
244245
);
245246

0 commit comments

Comments
 (0)