Skip to content

Commit de4468d

Browse files
committed
Perf: info style
1 parent ec201b3 commit de4468d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/layouts/Content/SliceList/index.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
</template>
1414

1515
<div class="info-grid">
16-
<n-popover
17-
v-for="item in videoInfoSetting"
18-
:key="item.key"
19-
trigger="hover"
20-
placement="top-start"
21-
>
16+
<n-popover v-for="item in videoInfoSetting" :key="item.key" trigger="hover">
2217
<template #trigger>
2318
<div class="info-chip" :class="{ 'is-empty': !item.message }">
2419
<n-icon class="chip-icon" :component="item.iconName" />
@@ -270,12 +265,14 @@ setVideoInfoSetting();
270265
.info-chip {
271266
display: inline-flex;
272267
align-items: center;
268+
flex-wrap: nowrap;
273269
gap: 6px;
274270
max-width: 100%;
275271
padding: 6px 10px;
276272
border-radius: 999px;
277273
background: rgba(156, 163, 175, 0.1);
278274
border: 1px solid rgba(156, 163, 175, 0.15);
275+
cursor: pointer;
279276
transition:
280277
background 0.2s,
281278
border-color 0.2s;
@@ -292,6 +289,7 @@ setVideoInfoSetting();
292289
opacity: 0.9;
293290
}
294291
.chip-label {
292+
word-break: keep-all;
295293
font-weight: 600;
296294
opacity: 0.9;
297295
}

0 commit comments

Comments
 (0)