Skip to content

Commit a56ecff

Browse files
committed
fix(list): adjust margin & padding
1 parent a35d9d2 commit a56ecff

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/common/list/ListItem.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const onClick = () => emit('onItemClick', { item: item?.value });
228228
<NEmpty size="large" :description="i18n('placeholder_empty')" />
229229
</NFlex>
230230
</slot>
231-
<NFlex v-else class="tile" :wrap="false">
231+
<NFlex v-else class="tile" :wrap="false" align="center">
232232
<PosterComponent
233233
v-if="!hidePoster"
234234
:item="item as PosterItem"
@@ -283,8 +283,9 @@ const onClick = () => emit('onItemClick', { item: item?.value });
283283
);
284284
285285
flex: 1 1 auto;
286-
padding: 0.5rem;
287-
border-radius: 1.15rem;
286+
margin: 0.25rem 0;
287+
padding: 0.3rem 0.25rem 0.25rem;
288+
border-radius: 0.75rem;
288289
289290
&:active {
290291
background-color: var(--bg-color-30);

src/styles/base.scss

+1
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@
199199
--image-box-shadow-hover: 0 0 20px 9px rgb(255 255 255 / 18%);
200200
--card-box-shadow: 0 1px 2px -2px rgb(0 0 0 / 24%), 0 3px 6px 0 rgb(0 0 0 / 18%), 0 5px 12px 4px rgb(0 0 0 / 12%);
201201
--inset-box-shadow: inset 0 0 20px 6px var(--bg-color-40);
202+
--light-box-shadow: 2px 2px 2px 0 var(--bg-color-50), -1px -1px 1px 0 var(--bg-color-30);
202203

203204
@media (display-mode: standalone) {
204205
/* height */

0 commit comments

Comments
 (0)