Skip to content

Commit

Permalink
fix: domain selector, change things
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Dec 4, 2023
1 parent 3df1328 commit 594a9cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/pages/posts/navigation/DomainSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import { PlusIcon } from '@heroicons/vue/24/solid'
import type { Domain } from '~/assets/js/domain'
defineOptions({
inheritAttrs: false
})
interface DomainSelectorProps {
boorus: Domain[]
modelValue: Domain
Expand Down Expand Up @@ -32,11 +36,9 @@
as="template"
@update:modelValue="emit('update:modelValue', $event)"
>
<!-- TODO: Fix width -->
<Float
:offset="16"
as="div"
class="relative"
as="template"
data-testid="domain-selector"
leave="transition ease-in duration-100"
leave-from="opacity-100"
Expand All @@ -46,8 +48,9 @@
>
<!-- Select -->
<ListboxButton
:class="[props.compact ? 'w-auto !rounded-full !p-2.5' : 'w-56']"
:class="[props.compact ? 'flex w-auto items-stretch !rounded-full !p-0' : 'w-56']"
class="hover:hover-text-util focus-visible:focus-outline-util hover:hover-bg-util relative cursor-default rounded-md py-1.5 pl-3 pr-10 text-left ring-1 ring-inset ring-base-0/20 sm:text-sm sm:leading-6"
v-bind="$attrs"
>
<span class="flex items-center">
<NuxtImg
Expand Down
1 change: 1 addition & 0 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@
:boorus="booruList"
:compact="true"
:model-value="selectedBooru"
class="self-stretch"
@update:model-value="onDomainChange"
/>

Expand Down

0 comments on commit 594a9cc

Please sign in to comment.