Skip to content

Commit fb8026e

Browse files
committed
🧹: Add separators between control categories
1 parent 3ad30db commit fb8026e

File tree

3 files changed

+125
-731
lines changed

3 files changed

+125
-731
lines changed

‎apps/phoure-www/src/components/ControlsSidebar.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import {
4141
SidebarGroupLabel,
4242
} from 'src/components/ui/sidebar';
4343
import { Slider } from 'src/components/ui/slider';
44+
import { Separator } from './ui/separator';
4445

4546
function ControlLabel(props: { htmlFor: string; children: string }) {
4647
return (
@@ -74,7 +75,7 @@ function SliderControl(
7475

7576
return (
7677
<>
77-
<div className="px-4 my-2">
78+
<div className="px-4 mt-2 mb-4">
7879
<ControlLabel htmlFor={id}>{label}</ControlLabel>
7980
<div className="flex justify-self-stretch gap-2">
8081
<Slider
@@ -213,6 +214,7 @@ export function ControlsSidebar() {
213214
<DisplayModeControl />
214215
<TargetResolutionControl />
215216
</ControlGroup>
217+
<Separator />
216218
<ControlGroup label="Time">
217219
<CheckboxControl
218220
label="Fixed timestep"
@@ -226,6 +228,7 @@ export function ControlsSidebar() {
226228
max={2}
227229
/>
228230
</ControlGroup>
231+
<Separator />
229232
<ControlGroup label="Camera">
230233
<SliderControl
231234
label="Up/down position"

‎apps/phoure-www/src/components/ui/separator.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
21
import * as React from 'react';
2+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
33

4-
import { cn } from 'src/lib/utils.ts';
4+
import { cn } from 'src/lib/utils';
55

66
const Separator = React.forwardRef<
77
React.ElementRef<typeof SeparatorPrimitive.Root>,

0 commit comments

Comments
 (0)