Skip to content

Commit 096b5c8

Browse files
committed
feat: heading style for too long psl site
1 parent de8a7e1 commit 096b5c8

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/App.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,20 @@
4848
:class="showTable ? '-rotate-90' : 'rotate-90'"
4949
></div>
5050
</div>
51-
<span class="p-2 text-sm">
51+
<span class="p-2 text-sm truncate">
5252
<i18n-t keypath="tip">
5353
<template #count>
5454
<span
55-
class="rounded-full px-2 py-0.25 text-xs bg-indigo-500 text-white"
55+
class="rounded-full mx-1 px-2 py-0.25 text-xs bg-indigo-500 text-white"
5656
>
5757
{{ data?.length }}
5858
</span>
5959
</template>
60-
<template #host>{{ pagePsl }}</template>
60+
<template #host>
61+
<span :title="pagePsl ?? ''">
62+
{{ pagePsl }}
63+
</span>
64+
</template>
6165
</i18n-t>
6266
</span>
6367
<div

src/components/DataTable.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<template v-for="(item, i) of data" :key="item.id">
3535
<tr>
3636
<td
37-
class="relative whitespace-nowrap p-2 text-right text-xs font-medium cursor-pointer"
37+
class="relative truncate p-2 text-right text-xs font-medium cursor-pointer"
3838
@click="toggleExpand(i)"
3939
>
4040
<div
@@ -44,22 +44,22 @@
4444
</td>
4545
<td
4646
:title="item.name"
47-
class="whitespace-nowrap text-ellipsis break-all overflow-hidden py-2 pl-4 pr-3 text-xs font-medium max-w-60"
47+
class="break-all truncate py-2 pl-4 pr-3 text-xs font-medium max-w-60"
4848
>
4949
{{ item.name }}
5050
</td>
5151
<td
52-
class="whitespace-nowrap text-ellipsis break-all overflow-hidden px-3 py-2 text-xs text-$ud-text-secondary"
52+
class="break-all truncate px-3 py-2 text-xs text-$ud-text-secondary"
5353
>
5454
{{ item.daily_installs }}
5555
</td>
5656
<td
57-
class="whitespace-nowrap text-ellipsis break-all overflow-hidden px-3 py-2 text-xs text-$ud-text-secondary"
57+
class="break-all truncate px-3 py-2 text-xs text-$ud-text-secondary"
5858
>
5959
{{ formatTimeAgoWithI18n(new Date(item.code_updated_at)) }}
6060
</td>
6161
<td
62-
class="relative whitespace-nowrap py-2 pl-3 pr-4 text-right text-xs font-medium"
62+
class="relative truncate py-2 pl-3 pr-4 text-right text-xs font-medium"
6363
>
6464
<a
6565
:href="item.code_url"

0 commit comments

Comments
 (0)