fix: notifications and store styling

This commit is contained in:
DecDuck
2025-03-11 17:08:31 +11:00
parent 1fb283a8a7
commit 16bd89e8e0
15 changed files with 203 additions and 81 deletions
+1 -1
View File
@@ -19,7 +19,6 @@
>
<ChevronDownIcon class="h-5 w-5 text-white" aria-hidden="true" />
</MenuButton>
<transition
enter-active-class="transition ease-out duration-100"
enter-from-class="transform opacity-0 scale-95"
@@ -92,6 +91,7 @@
<script setup lang="ts">
import { PlusIcon, ChevronDownIcon, CheckIcon } from "@heroicons/vue/24/solid";
import { Menu, MenuButton, MenuItems, MenuItem } from "@headlessui/vue";
import type { ComponentPublicInstance } from "vue";
const props = defineProps<{
gameId: string;
+8 -4
View File
@@ -13,12 +13,16 @@
v-if="notification.actions.length > 0"
class="mt-3 flex space-x-7"
>
<button
<NuxtLink
v-for="[name, link] in notification.actions.map((e) =>
e.split('|')
)"
type="button"
class="rounded-md bg-white text-sm font-medium text-blue-600 hover:text-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
:href="link"
class="rounded-md text-sm font-medium text-blue-600 hover:text-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
>
Undo
</button>
{{ name }}
</NuxtLink>
<!-- todo -->
</div>
</div>