fix: gamelog widget location display issues

This commit is contained in:
pa
2026-03-25 23:14:48 +09:00
parent a7b578e4cf
commit 807e39ce72
@@ -42,14 +42,17 @@
</TableCell> </TableCell>
<TableCell class="max-w-0 truncate"> <TableCell class="max-w-0 truncate">
<template v-if="item.type === 'Location'"> <template v-if="item.type === 'Location'">
<MapPin class="mr-1 inline-block h-3.5 w-3.5 shrink-0 text-muted-foreground" /> <div class="flex min-w-0 items-center">
<MapPin class="mr-1 h-3.5 w-3.5 shrink-0 text-muted-foreground" />
<div class="min-w-0 flex-1 truncate">
<Location <Location
class="inline [&>div]:inline-flex"
:location="item.location" :location="item.location"
:hint="item.worldName" :hint="item.worldName"
:grouphint="item.groupName" :grouphint="item.groupName"
enable-context-menu enable-context-menu
disable-tooltip /> disable-tooltip />
</div>
</div>
</template> </template>
<template v-else-if="item.type === 'OnPlayerJoined'"> <template v-else-if="item.type === 'OnPlayerJoined'">
<LogIn class="mr-1 inline-block h-3.5 w-3.5 shrink-0 text-muted-foreground" /> <LogIn class="mr-1 inline-block h-3.5 w-3.5 shrink-0 text-muted-foreground" />
@@ -100,13 +103,13 @@
item.displayName item.displayName
}}</span> }}</span>
<span class="text-muted-foreground"> </span> <span class="text-muted-foreground"> </span>
<div v-if="item.location" class="min-w-0 flex-1 truncate">
<Location <Location
v-if="item.location"
class="inline [&>div]:inline-flex"
:location="item.location" :location="item.location"
:hint="item.worldName" :hint="item.worldName"
enable-context-menu enable-context-menu
disable-tooltip /> disable-tooltip />
</div>
<span v-else class="text-muted-foreground">{{ item.worldName || '' }}</span> <span v-else class="text-muted-foreground">{{ item.worldName || '' }}</span>
</template> </template>
<template v-else> <template v-else>