Skip to content

Commit

Permalink
UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Dec 28, 2023
1 parent eb6ad93 commit a7e7c66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
@blur="blurHandler"
:dusk="`option-${item.name}`"
@click.prevent="() => item.click() && hide()"
class="block px-4 py-2 mx-2 my-1 text-xs font-medium transition duration-150 ease-in-out rounded-md text-ui-gray-100 hover:bg-ui-gray-900 focus:outline-none focus:ring-0 focus:bg-ui-gray-900"
class="block p-2 mx-2 my-1 text-xs font-medium transition duration-150 ease-in-out rounded-md text-ui-gray-100 hover:bg-ui-gray-900 focus:outline-none focus:ring-0 focus:bg-ui-gray-900"
>
{{ item.title }}
</a>
Expand Down
8 changes: 6 additions & 2 deletions components/FileDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
leaveToClass: 'opacity-0 scale-95',
}"
>
<div dusk="dropdown-file" slot-scope="{ hide, blurHandler }" class="py-1 shadow-lg">
<div
dusk="dropdown-file"
slot-scope="{ hide, blurHandler }"
class="py-2 shadow-lg space-y-1"
>
<template v-for="(option, index) in options">
<div v-if="option.separator" class="h-px bg-ui-gray-800 mx-2" :key="index"></div>

Expand All @@ -25,7 +29,7 @@
:key="option.name"
@blur="blurHandler"
@click.prevent="() => option.click() && hide()"
class="block px-4 py-1 my-1 text-xs leading-5 transition duration-150 ease-in-out mx-2 font-medium text-ui-gray-100 rounded-md hover:bg-ui-gray-900 focus:outline-none focus:ring-0 focus:bg-ui-gray-900"
class="block p-2 text-xs transition duration-150 ease-in-out mx-2 font-medium text-ui-gray-100 rounded-md hover:bg-ui-gray-900 focus:outline-none focus:ring-0 focus:bg-ui-gray-900"
>
{{ option.title }}
</a>
Expand Down

0 comments on commit a7e7c66

Please sign in to comment.