Skip to content

A self-hosted media server and file management system

fix: pulse data cards have no standard class

aminnausin9a671b36b4dc
diff --git a/resources/css/theme.css b/resources/css/theme.css
index 28b6081f..cc627511 100644
--- a/resources/css/theme.css
+++ b/resources/css/theme.css
@@ -279,6 +279,10 @@
@apply hover:ring-primary-muted hover:dark:ring-primary focus-within:ring-primary-muted dark:focus-within:ring-primary;
}
+ .data-card.pulse-card {
+ @apply bg-surface-2 hover:bg-surface-2 rounded-md p-4 shadow-xs ring-1 ring-gray-900/5 ring-inset;
+ }
+
.content-auto {
content-visibility: auto;
contain-intrinsic-size: auto 64px;
diff --git a/resources/js/components/pulse/PulseUserCard.vue b/resources/js/components/pulse/PulseUserCard.vue
index a79a23b1..68748280 100644
--- a/resources/js/components/pulse/PulseUserCard.vue
+++ b/resources/js/components/pulse/PulseUserCard.vue
@@ -2,22 +2,22 @@
const props = defineProps<{ user: { name: string; extra?: any; avatar?: string } }>();
</script>
<template>
- <div class="flex items-center justify-between p-4 gap-2 rounded-md dark:bg-primary-dark-800 bg-primary-900 ring-1 ring-gray-900/5 shadow-xs ring-inset">
+ <div class="data-card pulse-card flex items-center justify-between gap-2">
<div class="flex items-center gap-3 overflow-hidden">
- <img v-if="props.user?.avatar && props.user.extra !== ''" :src="props.user.avatar" :alt="props.user.name" loading="lazy" class="rounded-full w-8 h-8 object-cover" />
+ <img v-if="props.user?.avatar && props.user.extra !== ''" :src="props.user.avatar" :alt="props.user.name" loading="lazy" class="h-8 w-8 rounded-full object-cover" />
<div class="overflow-hidden">
- <div class="text-sm text-gray-900 dark:text-gray-100 font-medium truncate" :title="user.name">
+ <div class="truncate text-sm font-medium" :title="user.name">
{{ user.name }}
</div>
- <div class="text-xs text-gray-500 dark:text-gray-400 truncate" :title="user.name ?? user.extra">
+ <div class="text-foreground-2 truncate text-xs" :title="user.name ?? user.extra">
{{ props.user.avatar ? 'Deleted' : user.extra }}
</div>
</div>
</div>
- <div class="text-xl text-gray-900 dark:text-gray-100 font-bold tabular-nums">
+ <div class="text-xl font-bold tabular-nums">
<slot name="stats"> </slot>
</div>
</div>