Skip to content

A self-hosted media server and file management system

refactor: recolour pulse text

aminnausin1a9c57548a7c
diff --git a/resources/js/components/inputs/ButtonCorner.vue b/resources/js/components-archive/buttons/ButtonCorner.vue
old mode 100755
new mode 100644
similarity index 100%
rename from resources/js/components/inputs/ButtonCorner.vue
rename to resources/js/components-archive/buttons/ButtonCorner.vue
diff --git a/resources/js/components-archive/labels/ChipTag.vue b/resources/js/components-archive/labels/ChipTag.vue
index 141e5302..ae44fb56 100644
--- a/resources/js/components-archive/labels/ChipTag.vue
+++ b/resources/js/components-archive/labels/ChipTag.vue
@@ -1,14 +1,14 @@
<script setup lang="ts">
import { RouterLink } from 'vue-router';
-import ButtonCorner from '@/components/inputs/ButtonCorner.vue';
+import ButtonCorner from '@/components-archive/buttons/ButtonCorner.vue';
const props = defineProps(['label', 'colour', 'textClass', 'URL', 'removeable']);
</script>
<template>
<RouterLink
v-if="props.URL"
- :class="`p-1 px-2 text-sm ${props.textClass ? `${props.textClass} ` : ''}leading-none rounded-xl truncate lowercase text-neutral-100 dark:text-neutral-300 ${props.colour ? `${props.colour}` : 'bg-violet-600 dark:bg-violet-900'} shrink-0 transition-colors duration-200 `"
+ :class="`p-1 px-2 text-sm ${props.textClass ? `${props.textClass} ` : ''}leading-none truncate rounded-xl text-neutral-100 lowercase dark:text-neutral-300 ${props.colour ? `${props.colour}` : 'bg-violet-600 dark:bg-violet-900'} shrink-0 transition-colors duration-200`"
:to="props.URL"
>
<slot name="content">
@@ -25,7 +25,7 @@ const props = defineProps(['label', 'colour', 'textClass', 'URL', 'removeable'])
</RouterLink>
<p
v-else
- :class="`p-1 px-2 text-sm ${props.textClass ? `${props.textClass} ` : ''}leading-none rounded-xl truncate lowercase text-neutral-100 dark:text-neutral-300 ${props.colour ? `${props.colour}` : 'bg-violet-600 dark:bg-violet-900'} shrink-0 transition-colors duration-200 cursor-default ${removeable ? 'flex gap-1 items-center justify-between' : ''}`"
+ :class="`p-1 px-2 text-sm ${props.textClass ? `${props.textClass} ` : ''}leading-none truncate rounded-xl text-neutral-100 lowercase dark:text-neutral-300 ${props.colour ? `${props.colour}` : 'bg-violet-600 dark:bg-violet-900'} shrink-0 cursor-default transition-colors duration-200 ${removeable ? 'flex items-center justify-between gap-1' : ''}`"
>
<slot name="content">
{{ props.label }}
diff --git a/resources/js/components/cards/pulse/PulseCache.vue b/resources/js/components/cards/pulse/PulseCache.vue
index a324ba4a..26ff7079 100644
--- a/resources/js/components/cards/pulse/PulseCache.vue
+++ b/resources/js/components/cards/pulse/PulseCache.vue
@@ -124,12 +124,12 @@ const config = computed(() => {
<tr class="h-2 first:h-0"></tr>
<tr>
<PulseTd class="max-w-px">
- <code class="block truncate text-xs text-gray-900 dark:text-gray-100" :title="interaction.key">
+ <code class="text-foreground-0 block truncate text-xs" :title="interaction.key">
{{ interaction.key }}
</code>
</PulseTd>
- <PulseTd :numeric="true" class="font-bold text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6 font-bold">
<span v-if="config.sample_rate < 1" :title="`Sample rate: ${config.sample_rate}, Raw value: ${format_number(interaction.hits)}`">
~{{ format_number(interaction.hits * (1 / config.sample_rate)) }}
</span>
@@ -138,7 +138,7 @@ const config = computed(() => {
</template>
</PulseTd>
- <PulseTd :numeric="true" class="font-bold text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6 font-bold">
<span v-if="config.sample_rate < 1" :title="`Sample rate: ${config.sample_rate}, Raw value: ${format_number(interaction.misses)}`">
~{{ format_number(interaction.misses * (1 / config.sample_rate)) }}
</span>
diff --git a/resources/js/components/cards/pulse/PulseExceptions.vue b/resources/js/components/cards/pulse/PulseExceptions.vue
index 3f92a888..bf26e135 100644
--- a/resources/js/components/cards/pulse/PulseExceptions.vue
+++ b/resources/js/components/cards/pulse/PulseExceptions.vue
@@ -104,18 +104,18 @@ const exceptions = computed(() => {
<template v-for="(exception, index) in exceptions.slice(0, 100)" :key="index">
<tr class="h-2 first:h-0"></tr>
<tr>
- <PulseTd class="max-w-px">
- <code class="block truncate text-xs text-neutral-900 dark:text-neutral-100" :title="exception.class">
+ <PulseTd class="max-w-px text-xs">
+ <code class="text-foreground-0 block truncate" :title="exception.class">
{{ exception.class }}
</code>
- <p class="mt-1 truncate text-xs text-neutral-500 dark:text-neutral-400" :title="exception.location">
+ <p class="text-foreground-2 mt-1 truncate" :title="exception.location">
{{ exception.location }}
</p>
</PulseTd>
- <PulseTd :numeric="true" class="font-bold text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6 font-bold">
{{ toTimeSpan(new Date(exception.latest), ' EST', true) }}
</PulseTd>
- <PulseTd :numeric="true" class="font-bold text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6 font-bold">
<span
v-if="pulseData?.exceptions?.config.sample_rate && pulseData.exceptions.config.sample_rate < 1"
:title="`Sample rate: ${pulseData?.exceptions?.config.sample_rate}, Raw value: ${format_number(exception.count)}`"
diff --git a/resources/js/components/cards/pulse/PulseQueues.vue b/resources/js/components/cards/pulse/PulseQueues.vue
index 583079e4..f4cf96b5 100644
--- a/resources/js/components/cards/pulse/PulseQueues.vue
+++ b/resources/js/components/cards/pulse/PulseQueues.vue
@@ -72,7 +72,7 @@ function scale(data: { [key: string]: any }) {
<PulseNoResults :isLoading="isLoading" v-if="!queues || (Object.keys(queues)?.length ?? 0) == 0" />
<div v-else-if="queues" class="mx-px mb-px grid gap-3">
<div v-for="queue in Object.keys(queues)" :key="queue">
- <h3 class="font-bold text-neutral-700 dark:text-neutral-300">
+ <h3 class="text-foreground-6 font-bold">
<template v-if="pulseData?.queues?.showConnection">
{{ queue }}
</template>
diff --git a/resources/js/components/cards/pulse/PulseSlowJobs.vue b/resources/js/components/cards/pulse/PulseSlowJobs.vue
index b0228f97..83391ac2 100644
--- a/resources/js/components/cards/pulse/PulseSlowJobs.vue
+++ b/resources/js/components/cards/pulse/PulseSlowJobs.vue
@@ -102,13 +102,13 @@ const config = computed(() => {
<template v-for="(slowJob, index) in slowJobs.slice(0, 100)" :key="index">
<tr class="h-2 first:h-0"></tr>
<tr>
- <PulseTd class="max-w-px">
- <code class="block truncate text-xs text-gray-900 dark:text-gray-100" :title="slowJob.job">
+ <PulseTd class="max-w-px text-xs">
+ <code class="text-foreground-0 block truncate" :title="slowJob.job">
{{ slowJob.job }}
</code>
- <p v-if="Array.isArray(config?.threshold)" class="mt-1 text-xs text-gray-500 dark:text-gray-400">{{ slowJob.threshold }}ms threshold</p>
+ <p v-if="Array.isArray(config?.threshold)" class="text-foreground-2 mt-1">{{ slowJob.threshold }}ms threshold</p>
</PulseTd>
- <PulseTd :numeric="true" class="font-bold text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6 font-bold">
<span v-if="config.sample_rate < 1" :title="`Sample rate: ${config.sample_rate}, Raw value: ${format_number(slowJob.count)}`"
>~{{ format_number(slowJob.count * (1 / config.sample_rate)) }}</span
>
@@ -116,7 +116,7 @@ const config = computed(() => {
{{ format_number(slowJob.count) }}
</template>
</PulseTd>
- <PulseTd :numeric="true" class="text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6">
<strong v-if="!slowJob.slowest">Unknown</strong>
<template v-else>
<strong>{{ format_number(slowJob.slowest) ?? '<1' }}</strong> ms
diff --git a/resources/js/components/cards/pulse/PulseSlowOutgoingRequests.vue b/resources/js/components/cards/pulse/PulseSlowOutgoingRequests.vue
index e74d6471..e22f4d8b 100644
--- a/resources/js/components/cards/pulse/PulseSlowOutgoingRequests.vue
+++ b/resources/js/components/cards/pulse/PulseSlowOutgoingRequests.vue
@@ -122,7 +122,7 @@ function getDomainFromUrl(input: string): string | null {
<PulseTd>
<PulseHttpMethodBadge :method="slowRequest.method" />
</PulseTd>
- <PulseTd class="max-w-px">
+ <PulseTd class="max-w-px text-xs">
<div class="flex items-center" :title="slowRequest.uri">
<img
v-if="getDomainFromUrl(slowRequest.uri)"
@@ -132,15 +132,13 @@ function getDomainFromUrl(input: string): string | null {
onerror="this.style.display='none'"
alt="URL favicon"
/>
- <code class="block truncate text-xs text-gray-900 dark:text-gray-100">
+ <code class="text-foreground-0 block truncate">
{{ slowRequest.uri }}
</code>
</div>
- <p v-if="Array.isArray(config?.threshold)" class="mt-1 text-xs text-neutral-500 dark:text-neutral-400">
- {{ slowRequest.threshold }}ms threshold
- </p>
+ <p v-if="Array.isArray(config?.threshold)" class="text-foreground-2 mt-1">{{ slowRequest.threshold }}ms threshold</p>
</PulseTd>
- <PulseTd :numeric="true" class="font-bold text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6 font-bold">
<span v-if="config.sample_rate < 1" :title="`Sample rate: ${config.sample_rate}, Raw value: ${format_number(slowRequest.count)}`">
~{{ format_number(slowRequest.count * (1 / config.sample_rate)) }}
</span>
@@ -148,7 +146,7 @@ function getDomainFromUrl(input: string): string | null {
{{ format_number(slowRequest.count) }}
</template>
</PulseTd>
- <PulseTd :numeric="true" class="text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6">
<strong v-if="!slowRequest.slowest">Unknown</strong>
<template v-else>
<strong>{{ format_number(slowRequest.slowest) ?? '<1' }}</strong> ms
diff --git a/resources/js/components/cards/pulse/PulseSlowQueries.vue b/resources/js/components/cards/pulse/PulseSlowQueries.vue
index 59bd249d..0de0be42 100644
--- a/resources/js/components/cards/pulse/PulseSlowQueries.vue
+++ b/resources/js/components/cards/pulse/PulseSlowQueries.vue
@@ -121,7 +121,7 @@ const config = computed(() => {
></div>
</div>
</PulseTd>
- <PulseTd :numeric="true" class="font-bold text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6 font-bold">
<span v-if="config.sample_rate < 1" :title="`Sample rate: ${config.sample_rate}, Raw value: ${format_number(query.count)}`">
~{{ format_number(query.count * (1 / config.sample_rate)) }}
</span>
@@ -129,7 +129,7 @@ const config = computed(() => {
{{ format_number(query.count) }}
</template>
</PulseTd>
- <PulseTd :numeric="true" class="text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6">
<strong v-if="!query.slowest">Unknown</strong>
<template v-else>
<strong>{{ format_number(query.slowest) ?? '<1' }}</strong> ms
diff --git a/resources/js/components/cards/pulse/PulseSlowRequests.vue b/resources/js/components/cards/pulse/PulseSlowRequests.vue
index 6052b005..a467efce 100644
--- a/resources/js/components/cards/pulse/PulseSlowRequests.vue
+++ b/resources/js/components/cards/pulse/PulseSlowRequests.vue
@@ -110,17 +110,15 @@ const config = computed(() => {
<PulseHttpMethodBadge :method="slowRequest.method" />
</PulseTd>
<PulseTd class="max-w-px overflow-hidden">
- <code class="block truncate text-xs text-neutral-900 dark:text-neutral-100" :title="slowRequest.uri">
+ <code class="text-foreground-0 block truncate text-xs" :title="slowRequest.uri">
{{ slowRequest.uri }}
</code>
- <p v-if="slowRequest.action" class="mt-1 truncate text-xs text-neutral-500 dark:text-neutral-400" :title="slowRequest.action">
+ <p v-if="slowRequest.action" class="text-foreground-2 mt-1 truncate text-xs" :title="slowRequest.action">
{{ slowRequest.action }}
</p>
- <p v-if="Array.isArray(config?.threshold)" class="mt-1 text-xs text-neutral-500 dark:text-neutral-400">
- {{ slowRequest.threshold }}ms threshold
- </p>
+ <p v-if="Array.isArray(config?.threshold)" class="text-foreground-2 mt-1 text-xs">{{ slowRequest.threshold }}ms threshold</p>
</PulseTd>
- <PulseTd :numeric="true" class="font-bold text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6 font-bold">
<span v-if="config.sample_rate < 1" :title="`Sample rate: ${config.sample_rate}, Raw value: ${format_number(slowRequest.count)}`">
~{{ format_number(slowRequest.count * (1 / config.sample_rate)) }}
</span>
@@ -128,7 +126,7 @@ const config = computed(() => {
{{ format_number(slowRequest.count) }}
</template>
</PulseTd>
- <PulseTd :numeric="true" class="text-neutral-700 dark:text-neutral-300">
+ <PulseTd :numeric="true" class="text-foreground-6">
<strong v-if="!slowRequest.slowest">Unknown</strong>
<template v-else>
<strong>{{ format_number(slowRequest.slowest) ?? '<1' }}</strong> ms
diff --git a/resources/js/components/cedar-ui/icons/CedarDelete2.vue b/resources/js/components/cedar-ui/icons/CedarDelete2.vue
index 031a24ce..49d101de 100644
--- a/resources/js/components/cedar-ui/icons/CedarDelete2.vue
+++ b/resources/js/components/cedar-ui/icons/CedarDelete2.vue
@@ -1,5 +1,5 @@
<template>
- <svg class="h-3 w-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
+ <svg class="size-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fill-rule="evenodd"
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
diff --git a/resources/js/components/dashboard/DashboardAnalytics.vue b/resources/js/components/dashboard/DashboardAnalytics.vue
index 1344dfe4..96da22a1 100644
--- a/resources/js/components/dashboard/DashboardAnalytics.vue
+++ b/resources/js/components/dashboard/DashboardAnalytics.vue
@@ -110,7 +110,7 @@ watch(
<LucideChartNoAxesCombined class="h-6 w-6" />
</template>
<span v-for="(stat, index) in stats?.changes" :key="index" class="flex flex-wrap items-center gap-2 capitalize">
- <h3 class="w-full text-sm text-nowrap text-neutral-500 dark:text-neutral-400">{{ stat.title }}</h3>
+ <h3 class="text-foreground-2 w-full text-sm text-nowrap">{{ stat.title }}</h3>
<span>
<h3 class="text-lg">{{ stat.count ?? 0 }}</h3>
</span>
diff --git a/resources/js/components/modals/BaseModal.vue b/resources/js/components/modals/BaseModal.vue
index 5d45d9e4..3973d32c 100644
--- a/resources/js/components/modals/BaseModal.vue
+++ b/resources/js/components/modals/BaseModal.vue
@@ -1,20 +1,19 @@
<script setup lang="ts">
import { useModalStore } from '@/stores/ModalStore';
-
-import ButtonCorner from '@/components/inputs/ButtonCorner.vue';
+import { ButtonCorner } from '@/components/cedar-ui/button';
const modalStore = useModalStore();
</script>
<template>
- <section class="flex flex-wrap gap-2 items-center">
- <h3 ref="modalTitle" id="modalTitle" class="text-xl font-semibold scroll-mt-16 sm:scroll-mt-12 flex-1">
+ <section class="flex flex-wrap items-center gap-2">
+ <h3 ref="modalTitle" id="modalTitle" class="flex-1 scroll-mt-16 text-xl font-semibold sm:scroll-mt-12">
<slot name="title">
{{ modalStore.props?.title ?? 'Modal Title' }}
</slot>
</h3>
- <ButtonCorner @click="modalStore.close" class="m-0! static!" />
- <p class="text-neutral-500 dark:text-neutral-400 text-sm w-full" v-if="$slots.description" id="modalDescription">
+ <ButtonCorner @click="modalStore.close" class="static! m-0!" />
+ <p class="text-foreground-2 w-full text-sm" v-if="$slots.description" id="modalDescription">
<slot name="description"> </slot>
</p>
</section>
diff --git a/resources/js/components/pinesUI/ModalBase.vue b/resources/js/components/pinesUI/ModalBase.vue
index 219b6025..9d257f85 100755
--- a/resources/js/components/pinesUI/ModalBase.vue
+++ b/resources/js/components/pinesUI/ModalBase.vue
@@ -1,12 +1,10 @@
<script setup lang="ts">
import { ref, useTemplateRef, watch } from 'vue';
+import { ButtonCorner, ButtonForm } from '@/components/cedar-ui/button';
import { OnClickOutside } from '@vueuse/components';
import { UseFocusTrap } from '@vueuse/integrations/useFocusTrap/component';
import { useAppStore } from '@/stores/AppStore';
-import ButtonCorner from '@/components/inputs/ButtonCorner.vue';
-import ButtonForm from '@/components/inputs/ButtonForm.vue';
-
const props = withDefaults(
defineProps<{
modalData: any;
@@ -50,7 +48,7 @@ watch(
<Teleport to="body">
<dialog
v-show="modalData.modalOpen || modalData.isAnimating"
- class="modal fixed top-0 left-0 z-300 flex items-center justify-center w-screen h-screen text-gray-900 dark:text-neutral-200 bg-transparent"
+ class="modal fixed top-0 left-0 z-300 flex h-screen w-screen items-center justify-center bg-transparent text-gray-900 dark:text-neutral-200"
v-cloak
aria-modal="true"
aria-labelledby="modalTitle"
@@ -64,7 +62,7 @@ watch(
leave-from-class="opacity-100"
leave-to-class="opacity-0"
>
- <div v-if="modalData.modalOpen" class="absolute inset-0 w-full h-full backdrop-blur-xs bg-opacity-70"></div>
+ <div v-if="modalData.modalOpen" class="bg-opacity-70 absolute inset-0 h-full w-full backdrop-blur-xs"></div>
</Transition>
<Transition
enter-active-class="ease-out duration-300"
@@ -74,23 +72,23 @@ watch(
leave-from-class="opacity-100 sm:scale-100"
leave-to-class="opacity-0 sm:scale-95"
>
- <UseFocusTrap v-if="modalData.modalOpen" class="relative w-full px-6 py-10 sm:py-6 max-h-screen h-full overflow-y-scroll scrollbar-hide flex items-center">
+ <UseFocusTrap v-if="modalData.modalOpen" class="scrollbar-hide relative flex h-full max-h-screen w-full items-center overflow-y-scroll px-6 py-10 sm:py-6">
<OnClickOutside
@trigger="closeModal"
@keydown.esc="closeModal"
- class="gap-4 flex flex-col drop-shadow-md m-auto w-full p-6 bg-white dark:bg-neutral-800/90 backdrop-blur-lg border shadow-lg border-neutral-200 dark:border-neutral-700 sm:max-w-lg xl:max-w-xl 3xl:max-w-2xl rounded-md sm:rounded-lg"
+ class="3xl:max-w-2xl m-auto flex w-full flex-col gap-4 rounded-md border border-neutral-200 bg-white p-6 shadow-lg drop-shadow-md backdrop-blur-lg sm:max-w-lg sm:rounded-lg xl:max-w-xl dark:border-neutral-700 dark:bg-neutral-800/90"
tabindex="-1"
>
- <section class="flex flex-wrap gap-2 items-center">
- <h3 ref="modalTitle" id="modalTitle" class="text-xl font-semibold scroll-mt-16 sm:scroll-mt-12 flex-1">{{ modalData?.title ?? 'Modal Title' }}</h3>
- <ButtonCorner @click="closeModal" class="m-0! static!" />
- <p class="text-neutral-500 dark:text-neutral-400 text-sm w-full" v-if="$slots.description" id="modalDescription">
+ <section class="flex flex-wrap items-center gap-2">
+ <h3 ref="modalTitle" id="modalTitle" class="flex-1 scroll-mt-16 text-xl font-semibold sm:scroll-mt-12">{{ modalData?.title ?? 'Modal Title' }}</h3>
+ <ButtonCorner @click="closeModal" class="hover:bg-overlay-accent static p-1.5" :use-default-style="false" />
+ <p class="text-foreground-2 w-full text-sm" v-if="$slots.description" id="modalDescription">
<slot name="description"> </slot>
</p>
</section>
<slot name="content"> </slot>
<slot v-if="useControls" name="controls">
- <section class="relative flex flex-col-reverse sm:flex-row sm:justify-end gap-2">
+ <section class="relative flex flex-col-reverse gap-2 sm:flex-row sm:justify-end">
<ButtonForm type="button" variant="reset" @click="closeModal" :disabled="processing || isProcessing"> Cancel </ButtonForm>
<ButtonForm type="button" variant="submit" @click="submitModal()" :disabled="processing || isProcessing">
{{ modalData.submitText }}
diff --git a/resources/js/components/pulse/PulseSelectLabel.vue b/resources/js/components/pulse/PulseSelectLabel.vue
index d476fd0b..76ad4306 100644
--- a/resources/js/components/pulse/PulseSelectLabel.vue
+++ b/resources/js/components/pulse/PulseSelectLabel.vue
@@ -3,7 +3,7 @@ defineProps<{ controlId: string }>();
</script>
<template>
<label
- class="capitalize whitespace-nowrap h-10 flex items-center justify-between w-full py-2 p-3 text-left rounded-l-md shadow-xs text-sm ring-inset ring-1 ring-neutral-200 dark:ring-neutral-700 text-neutral-900 dark:text-neutral-100 bg-primary-800 dark:bg-neutral-900"
+ class="text-foreground-0 bg-primary-800 flex h-10 w-full items-center justify-between rounded-l-md p-3 py-2 text-left text-sm whitespace-nowrap capitalize shadow-xs ring-1 ring-neutral-200 ring-inset dark:bg-neutral-900 dark:ring-neutral-700"
:for="controlId"
>
<slot></slot>
diff --git a/resources/js/components/video/VideoPartyItem.vue b/resources/js/components/video/VideoPartyItem.vue
index 34577caf..e474573d 100644
--- a/resources/js/components/video/VideoPartyItem.vue
+++ b/resources/js/components/video/VideoPartyItem.vue
@@ -2,11 +2,10 @@
import type { UserResource } from '@/types/resources';
import type { Ref } from 'vue';
+import { ButtonCorner } from '@/components/cedar-ui/button';
import { useAuthStore } from '@/stores/AuthStore';
import { storeToRefs } from 'pinia';
-import ButtonCorner from '@/components/inputs/ButtonCorner.vue';
-
import ProiconsCancel from '~icons/proicons/cancel';
import CircumStar from '~icons/circum/star';
@@ -22,19 +21,19 @@ const emits = defineEmits<{
<section class="flex justify-between gap-2">
<p class="w-full flex-1 truncate">{{ user.name }}</p>
<span class="flex justify-end gap-1">
- <CircumStar v-if="leaderId === user.id" class="h-4 w-4" title="Party Leader" />
+ <CircumStar v-if="leaderId === user.id" class="size-4" title="Party Leader" />
<ButtonCorner
:title="'Kick from party'"
colour-classes="hover:bg-transparent"
text-classes="hover:text-danger-2"
- position-classes="w-4 h-4 p-0"
+ position-classes="size-4 p-0"
v-else-if="leaderId === userData?.id"
@click="emits('kickUser', user.id)"
>
<template #icon><ProiconsCancel /></template>
</ButtonCorner>
<img
- class="aspect-square h-4 w-4 rounded-full object-cover"
+ class="aspect-square size-4 rounded-full object-cover"
:src="`https://ui-avatars.com/api/?name=${user.name[0] ?? 'a'}&amp;color=7F9CF5&amp;background=random`"
:alt="'user profile'"
/>
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vue
index 75b56fbd..c34f7244 100755
--- a/resources/js/components/video/VideoPlayer.vue
+++ b/resources/js/components/video/VideoPlayer.vue
@@ -13,6 +13,7 @@ import { useVideoPlayback } from '@/service/queries';
import { ToastController } from '@/components/cedar-ui/toast';
import { useContentStore } from '@/stores/ContentStore';
import { debounce, round } from 'lodash-es';
+import { ButtonCorner } from '@/components/cedar-ui/button';
import { useAuthStore } from '@/stores/AuthStore';
import { useAppStore } from '@/stores/AppStore';
import { storeToRefs } from 'pinia';
@@ -28,7 +29,6 @@ import VideoPopoverSlider from '@/components/video/VideoPopoverSlider.vue';
import VideoPopoverItem from '@/components/video/VideoPopoverItem.vue';
import VideoPartyPanel from '@/components/video/VideoPartyPanel.vue';
import VideoTimeline from '@/components/video/VideoTimeline.vue';
-import ButtonCorner from '@/components/inputs/ButtonCorner.vue';
import VideoHeatmap from '@/components/video/VideoHeatmap.vue';
import VideoPopover from '@/components/video/VideoPopover.vue';
import VideoButton from '@/components/video/VideoButton.vue';
@@ -1167,7 +1167,7 @@ defineExpose({
@click="isShowingStats = false"
colour-classes="hover:bg-transparent"
text-classes="hover:text-danger-2"
- position-classes="w-4 h-4 p-0"
+ position-classes="size-4"
>
<template #icon><ProiconsCancel /></template>
</ButtonCorner>