Skip to content

Commit

Permalink
Fix minor usability issues
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed Feb 25, 2024
1 parent a6233d2 commit 1e83c7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion client/src/components/app-bar/FeaturePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export function FeaturePicker({
icon={selected?.icon ? getIcon(selected.icon, selected.color) : icon}
arrow={arrow}
>
{truncate(selected?.name ?? label, { length: ellipsis })}
{truncate(selected?.name ?? label, {
length: ellipsis,
})}
</FeaturePickerButton>
)}
items={map(items, ({ id, name, description, hidden, icon, color }) => ({
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/app-bar/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function MapPicker({ onChange, value }: EditorProps<Map>) {
showTooltip
arrow
paper
ellipsis={30}
ellipsis={25}
icon={<FileOpenOutlined />}
label="Choose Map"
value={value?.id}
Expand Down Expand Up @@ -84,7 +84,7 @@ export function TracePicker({
showTooltip
paper
arrow
ellipsis={30}
ellipsis={25}
icon={<FileOpenOutlined />}
label="Choose Trace"
value={value?.id}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/layer-editor/LayerEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function Component(
onChange={(_, v) =>
setDraft?.(
produce(draft, (d) => {
set(d, "source", { type: v });
set(d, "source.type", v);
})
)
}
Expand Down

0 comments on commit 1e83c7e

Please sign in to comment.