Skip to content

Commit e4e9ad1

Browse files
author
mrmrs
committed
Adds more design changes
1 parent 3f1a6fa commit e4e9ad1

File tree

7 files changed

+20
-16
lines changed

7 files changed

+20
-16
lines changed

packages/gui/src/components/AddProperty.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@ export const AddPropertyControl = ({
5252

5353
return (
5454
<div>
55-
<Label>{label}</Label>
56-
<Combobox
57-
onFilterItems={handleFilterItems}
58-
onItemSelected={handleAddProperty}
59-
items={allProperties}
60-
decorateItemText={(str) => kebabCase(str)}
61-
clearOnSelect
62-
/>
55+
<Label>
56+
<span sx={{display: 'block', mb: 1,}}>{label}</span>
57+
<Combobox
58+
onFilterItems={handleFilterItems}
59+
onItemSelected={handleAddProperty}
60+
items={allProperties}
61+
decorateItemText={(str) => kebabCase(str)}
62+
clearOnSelect
63+
/>
64+
</Label>
6365
</div>
6466
)
6567
}

packages/gui/src/components/Layers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export default function Layers<T>(props: LayersProps<T>) {
179179
appearance: 'none',
180180
px: 0,
181181
py: 2,
182-
m: 0,
182+
mt: 2,
183183
border: 'none',
184184
background: 'none',
185185
cursor: 'pointer',

packages/gui/src/components/inputs/TextInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ type Props = EditorPropsWithLabel<string>
66
export function TextInput<T extends string>(props: Props) {
77
const { value, onChange } = props
88
return (
9-
<div sx={{ display: 'flex', flexDirection: 'row' }}>
9+
<div sx={{ width: '100%' }}>
1010
<input
1111
type="text"
1212
value={value}
1313
onChange={(e) => onChange(e.target.value as T)}
14-
sx={{ width: '100%', minHeight: '1.6em', mr: 1 }}
14+
sx={{ WebkitAppearance: 'none', appearance: 'none', width: '100%', border: '1px solid', boxSizing: 'border-box', display: 'block', p:2, borderRadius: '6px' }}
1515
/>
1616
</div>
1717
)

packages/gui/src/components/primitives/Combobox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function Combobox({
7373
handleFilterItems('')
7474
}
7575
}}
76-
sx={{ width: '100%' }}
76+
sx={{ WebkitAppearance: 'none', appearance: 'none', width: '100%', border: '1px solid', borderRadius: '6px', p: 1 }}
7777
/>
7878
<div
7979
sx={{

packages/gui/src/components/ui/IconButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function IconButton(props: Props) {
1212
WebkitAppearance: 'none',
1313
background: 'backgroundOffset',
1414
border: 'none',
15-
borderRadius: '6px',
15+
borderRadius: '6px,
1616
cursor: 'pointer',
1717
color: 'muted',
1818
display: 'flex',

packages/gui/src/components/ui/dropdowns/EditorDropdown.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as DropdownMenu from '@radix-ui/react-dropdown-menu'
22
import { MoreVertical, Trash } from 'react-feather'
33
import { DROPDOWN_ITEM_STYLES, DROPDOWN_STYLES } from './styles'
4+
import IconButton from '../IconButton'
45

56
type EditorDropdownProps = {
67
onClearStyles(): void
@@ -11,14 +12,14 @@ export const EditorDropdown = ({ onClearStyles }: EditorDropdownProps) => {
1112
<DropdownMenu.Trigger
1213
sx={{
1314
all: 'unset',
14-
px: 3,
1515
lineHeight: 1,
1616
position: 'relative',
17-
top: '1px',
1817
color: 'muted',
1918
}}
2019
>
21-
<MoreVertical size={12} />
20+
<IconButton sx={{ ml: 2 }}>
21+
<MoreVertical size={16} />
22+
</IconButton>
2223
</DropdownMenu.Trigger>
2324
<DropdownMenu.Content sx={DROPDOWN_STYLES}>
2425
<DropdownMenu.Item sx={DROPDOWN_ITEM_STYLES} onClick={onClearStyles}>

packages/gui/src/components/ui/dropdowns/FieldsetDropdown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const FieldsetDropdown = ({ onRemove }: FieldsetDropdownProps) => {
1111
<DropdownMenu.Trigger
1212
sx={{
1313
all: 'unset',
14+
cursor: 'pointer',
1415
px: 3,
1516
lineHeight: 1,
1617
position: 'relative',

0 commit comments

Comments
 (0)