[Fix] Add location button went ugly

This commit is contained in:
Jamie Pine committed 2023-04-05 19:55:57 -07:00
1 parent 071af22b42
commit cee435938e
3 files changed
+6 -7

No files matched your search

@@ -119,13 +119,7 @@ const LibrarySection = () => {
</SidebarLink>
);
})}
{(locations.data?.length || 0) < 4 && (
<AddLocationButton
className="cursor-normal mt-1 w-full
rounded border border-dashed border-sidebar-line px-2 py-1 text-center text-xs
font-medium text-ink-faint transition hover:border-sidebar-selected"
/>
)}
{(locations.data?.length || 0) < 4 && <AddLocationButton />}
</Section>
{!!tags.data?.length && (
<Section
@@ -10,6 +10,8 @@ export const AddLocationButton = (props: ButtonProps) => {
<>
<Button
{...props}
variant="dotted"
className="cursor-normal mt-1 w-full"
onClick={() =>
openDirectoryPickerDialog(platform)
.then((path) => {
+3
View File
@@ -46,6 +46,9 @@ const styles = cva(
outline: [
'border-sidebar-line/60 hover:border-sidebar-line active:border-sidebar-line active:border-sidebar-line/30'
],
dotted: [
`rounded border border-dashed border-sidebar-line/70 text-center text-xs font-medium text-ink-faint transition hover:border-sidebar-line hover:bg-sidebar-selected/5`
],
gray: [
'bg-app-button active:bg-app-selected hover:bg-app-hover',
'border-app-line hover:border-app-line active:border-app-active'