fix: 修复高度溢出问题

This commit is contained in:
张传龙 2022-06-22 20:36:53 +08:00
parent dd4cd871ba
commit 065868a40b
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<ScrollX ref="scrollX" :height="useTheme.tags.height" border-b bc-eee> <ScrollX ref="scrollX" :height="useTheme.tags.height">
<n-tag <n-tag
v-for="tag in tagsStore.tags" v-for="tag in tagsStore.tags"
:key="tag.path" :key="tag.path"

View File

@ -18,7 +18,7 @@
<n-layout style="background-color: #f5f6fb" :style="`height: calc(100% - ${useTheme.header.height}px)`"> <n-layout style="background-color: #f5f6fb" :style="`height: calc(100% - ${useTheme.header.height}px)`">
<AppTags v-if="useTheme.tags.visible" /> <AppTags v-if="useTheme.tags.visible" />
<AppMain <AppMain
class="cur-scroll" class="cur-scroll border-t bc-eee"
:style="{ :style="{
height: `calc(100% - ${useTheme.tags.visible ? useTheme.tags.height : 0}px)`, height: `calc(100% - ${useTheme.tags.visible ? useTheme.tags.height : 0}px)`,
overflow: 'auto', overflow: 'auto',