adjust widget header padding and table styles for better display

This commit is contained in:
pa
2026-03-17 21:45:21 +09:00
parent 93f07e8877
commit ded9ce6da2
3 changed files with 7 additions and 7 deletions

View File

@@ -27,8 +27,8 @@
</DropdownMenu>
</WidgetHeader>
<div class="min-h-0 flex-1 overflow-y-auto" ref="listRef">
<Table v-if="filteredData.length" class="is-compact-table">
<div class="min-h-0 flex-1 overflow-y-auto overflow-x-hidden" ref="listRef">
<Table v-if="filteredData.length" class="is-compact-table table-fixed">
<TableBody>
<TableRow
v-for="(item, index) in filteredData"
@@ -43,7 +43,7 @@
<TableCell v-if="showType" class="w-16 text-[11px] text-muted-foreground">
{{ item.type }}
</TableCell>
<TableCell class="truncate">
<TableCell class="max-w-0 truncate">
<template v-if="item.type === 'GPS'">
<MapPin class="mr-1 inline-block h-3.5 w-3.5 shrink-0 text-muted-foreground" />
<span class="cursor-pointer" @click="openUser(item.userId)">{{

View File

@@ -27,8 +27,8 @@
</DropdownMenu>
</WidgetHeader>
<div class="min-h-0 flex-1 overflow-y-auto">
<Table v-if="filteredData.length" class="is-compact-table">
<div class="min-h-0 flex-1 overflow-y-auto overflow-x-hidden">
<Table v-if="filteredData.length" class="is-compact-table table-fixed">
<TableBody>
<TableRow
v-for="(item, index) in filteredData"
@@ -40,7 +40,7 @@
<span>{{ formatTime(item.created_at) }}</span>
</TooltipWrapper>
</TableCell>
<TableCell class="truncate">
<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

View File

@@ -1,5 +1,5 @@
<template>
<div class="group/header flex shrink-0 items-center justify-between border-b px-2.5 py-1.5">
<div class="group/header flex shrink-0 items-center justify-between border-b px-2.5 py-0">
<div
class="flex cursor-pointer items-center gap-1.5 text-xs font-semibold text-muted-foreground transition-colors hover:text-foreground"
@click="navigateToPage">