fix: gamelog widget location display issues

This commit is contained in:
pa
2026-03-25 23:14:48 +09:00
parent a7b578e4cf
commit 807e39ce72

View File

@@ -42,14 +42,17 @@
</TableCell>
<TableCell class="max-w-0 truncate">
<template v-if="item.type === 'Location'">
<MapPin class="mr-1 inline-block h-3.5 w-3.5 shrink-0 text-muted-foreground" />
<Location
class="inline [&>div]:inline-flex"
:location="item.location"
:hint="item.worldName"
:grouphint="item.groupName"
enable-context-menu
disable-tooltip />
<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="item.location"
:hint="item.worldName"
:grouphint="item.groupName"
enable-context-menu
disable-tooltip />
</div>
</div>
</template>
<template v-else-if="item.type === 'OnPlayerJoined'">
<LogIn class="mr-1 inline-block h-3.5 w-3.5 shrink-0 text-muted-foreground" />
@@ -100,13 +103,13 @@
item.displayName
}}</span>
<span class="text-muted-foreground"> </span>
<Location
v-if="item.location"
class="inline [&>div]:inline-flex"
:location="item.location"
:hint="item.worldName"
enable-context-menu
disable-tooltip />
<div v-if="item.location" class="min-w-0 flex-1 truncate">
<Location
:location="item.location"
:hint="item.worldName"
enable-context-menu
disable-tooltip />
</div>
<span v-else class="text-muted-foreground">{{ item.worldName || '' }}</span>
</template>
<template v-else>