Explorar el Código

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 hace 7 meses
padre
commit
d896996f27
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
               }
             ]}
           >