mirror of
https://github.com/vrcx-team/VRCX.git
synced 2026-04-06 00:32:02 +02:00
fix alert dialog description wrapping issue
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
<span>{{ t(entry.label) }}</span
|
||||
><span
|
||||
v-if="isEntryNotified(entry)"
|
||||
class="notify-dot left-6.25!"
|
||||
class="notify-dot left-6!"
|
||||
aria-hidden="true"></span>
|
||||
</DropdownMenuItem>
|
||||
</DropdownMenuContent>
|
||||
@@ -99,7 +99,7 @@
|
||||
<span>{{ t(entry.label) }}</span>
|
||||
<span
|
||||
v-if="isEntryNotified(entry)"
|
||||
class="notify-dot left-0.5!"
|
||||
class="notify-dot left-0.75!"
|
||||
aria-hidden="true"></span>
|
||||
</SidebarMenuSubButton>
|
||||
</SidebarMenuSubItem>
|
||||
@@ -811,9 +811,9 @@
|
||||
.notify-dot {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 2px;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
right: 3px;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
background-color: #ef4444;
|
||||
border-radius: 50%;
|
||||
transform: translateY(-50%);
|
||||
|
||||
@@ -48,9 +48,11 @@
|
||||
@escapeKeyDown="onEscapeKeyDown"
|
||||
@pointerDownOutside="onPointerDownOutside"
|
||||
@interactOutside="onInteractOutside">
|
||||
<AlertDialogHeader>
|
||||
<AlertDialogHeader class="min-w-0">
|
||||
<AlertDialogTitle>{{ alertTitle }}</AlertDialogTitle>
|
||||
<AlertDialogDescription>{{ alertDescription }}</AlertDialogDescription>
|
||||
<AlertDialogDescription class="w-full min-w-0 whitespace-normal wrap-anywhere">
|
||||
{{ alertDescription }}
|
||||
</AlertDialogDescription>
|
||||
</AlertDialogHeader>
|
||||
|
||||
<AlertDialogFooter>
|
||||
|
||||
@@ -75,7 +75,7 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
const unseenNotifications = ref([]);
|
||||
const isNotificationsLoading = ref(false);
|
||||
|
||||
let notyMap = {};
|
||||
const notyMap = {};
|
||||
|
||||
watch(
|
||||
() => watchState.isLoggedIn,
|
||||
@@ -606,10 +606,7 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
if (displayName) {
|
||||
// don't play noty twice
|
||||
const notyId = `${noty.type},${displayName}`;
|
||||
if (
|
||||
notyMap[notyId] &&
|
||||
notyMap[notyId] >= noty.created_at
|
||||
) {
|
||||
if (notyMap[notyId] && notyMap[notyId] >= noty.created_at) {
|
||||
return;
|
||||
}
|
||||
notyMap[notyId] = noty.created_at;
|
||||
|
||||
Reference in New Issue
Block a user