소스 검색

fix: Update useRenderLayout.tsx add tagsView.value when rendertop

if I set tagsview value `false` in app.ts initial. the content will have margin top style.
EchoByte 7 달 전
부모
커밋
d896996f27
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/layout/components/useRenderLayout.tsx

+ 1 - 1
src/layout/components/useRenderLayout.tsx

@@ -197,7 +197,7 @@ export const useRenderLayout = () => {
               `${prefixCls}-content-scrollbar`,
               {
                 '!h-[calc(100%-var(--tags-view-height))] mt-[calc(var(--tags-view-height))]':
-                  fixedHeader.value
+                  fixedHeader.value && tagsView.value
               }
             ]}
           >