Skip to content

Commit

Permalink
refactor: dropdown item padding
Browse files Browse the repository at this point in the history
  • Loading branch information
HoraceHuang-ui committed Mar 25, 2024
1 parent b360ae6 commit a56f153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MyDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const sendCommand = (idx: number) => {
>
<div
v-for="(item, idx) in items"
class="py-1 my-0.5 rounded-lg cursor-default hover:bg-yellow-100 hover:text-yellow-600 active:bg-yellow-400 active:text-yellow-800 transition-all"
class="py-1 px-2 my-0.5 rounded-lg cursor-default hover:bg-yellow-100 hover:text-yellow-600 active:bg-yellow-400 active:text-yellow-800 transition-all"
:class="{ itemClass, 'item-selected': selected == idx }"
@click="sendCommand(idx)"
:key="idx"
Expand Down

0 comments on commit a56f153

Please sign in to comment.