@@ -126,7 +126,7 @@ export const useRenderLayout = () => {
126
126
127
127
< ToolHeader class = "flex-1" > </ ToolHeader >
128
128
</ div >
129
- < div class = "absolute left-0 top-[var(--logo-height)+1px ] h-[calc(100%-1px -var(--logo-height))] w-full flex" >
129
+ < div class = "absolute left-0 top-[var(--logo-height)] h-[calc(100%-var(--logo-height))] w-full flex" >
130
130
< Menu class = "relative layout-border__right !h-full" > </ Menu >
131
131
< div
132
132
class = { [
@@ -157,9 +157,9 @@ export const useRenderLayout = () => {
157
157
'layout-border__bottom absolute' ,
158
158
{
159
159
'!fixed top-0 left-0 z-10' : fixedHeader . value ,
160
- 'w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)] mt-[calc( var(--logo-height)+1px )]' :
160
+ 'w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)] mt-[var(--logo-height)]' :
161
161
collapse . value && fixedHeader . value ,
162
- 'w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)] mt-[calc( var(--logo-height)+1px )]' :
162
+ 'w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)] mt-[var(--logo-height)]' :
163
163
! collapse . value && fixedHeader . value
164
164
}
165
165
] }
@@ -190,24 +190,14 @@ export const useRenderLayout = () => {
190
190
< Menu class = "h-[var(--top-tool-height)] flex-1 px-10px" > </ Menu >
191
191
< ToolHeader > </ ToolHeader >
192
192
</ div >
193
- < div
194
- class = { [
195
- `${ prefixCls } -content` ,
196
- 'w-full' ,
197
- {
198
- 'h-[calc(100%-var(--app-footer-height))]' : ! fixedHeader . value ,
199
- 'h-[calc(100%-var(--tags-view-height)-var(--app-footer-height))]' : fixedHeader . value
200
- }
201
- ] }
202
- >
193
+ < div class = { [ `${ prefixCls } -content` , 'w-full h-[calc(100%-var(--top-tool-height))]' ] } >
203
194
< ElScrollbar
204
195
v-loading = { pageLoading . value }
205
196
class = { [
206
197
`${ prefixCls } -content-scrollbar` ,
207
198
{
208
- 'mt-[var(--tags-view-height)] !pb-[calc(var(--tags-view-height)+var(--app-footer-height))]' :
209
- fixedHeader . value ,
210
- 'pb-[var(--app-footer-height)]' : ! fixedHeader . value
199
+ '!h-[calc(100%-var(--tags-view-height))] mt-[calc(var(--tags-view-height))]' :
200
+ fixedHeader . value
211
201
}
212
202
] }
213
203
>
@@ -216,7 +206,7 @@ export const useRenderLayout = () => {
216
206
class = { [
217
207
'layout-border__bottom layout-border__top relative' ,
218
208
{
219
- '!fixed w-full top-[calc( var(--top-tool-height)+1px )] left-0' : fixedHeader . value
209
+ '!fixed w-full top-[var(--top-tool-height)] left-0' : fixedHeader . value
220
210
}
221
211
] }
222
212
style = "transition: width var(--transition-time-02), left var(--transition-time-02);"
@@ -238,7 +228,7 @@ export const useRenderLayout = () => {
238
228
239
229
< ToolHeader class = "flex-1" > </ ToolHeader >
240
230
</ div >
241
- < div class = "absolute left-0 top-[var(--logo-height)] h-[calc(100%-var(--logo-height))] w-[calc(100%-2px)] flex" >
231
+ < div class = "absolute left-0 top-[var(--logo-height)] h-[calc(100%-var(--logo-height))] w-full flex" >
242
232
< TabMenu > </ TabMenu >
243
233
< div
244
234
class = { [
@@ -270,18 +260,16 @@ export const useRenderLayout = () => {
270
260
{ tagsView . value ? (
271
261
< TagsView
272
262
class = { [
273
- 'relative layout-border__bottom layout-border__top ' ,
263
+ 'relative layout-border__bottom' ,
274
264
{
275
265
'!fixed top-0 left-0 z-10' : fixedHeader . value ,
276
266
'w-[calc(100%-var(--tab-menu-min-width))] !left-[var(--tab-menu-min-width)] mt-[var(--logo-height)]' :
277
- collapse . value && fixedHeader . value ,
267
+ collapse . value && fixedHeader . value && ! fixedMenu . value ,
278
268
'w-[calc(100%-var(--tab-menu-max-width))] !left-[var(--tab-menu-max-width)] mt-[var(--logo-height)]' :
279
- ! collapse . value && fixedHeader . value ,
280
- '!fixed top-0 !left-[var(--tab-menu-min-width)+var(--left-menu-max-width)] z-10' :
281
- fixedHeader . value && fixedMenu . value ,
282
- 'w-[calc(100%-var(--tab-menu-min-width)-var(--left-menu-max-width))] !left-[var(--tab-menu-min-width)+var(--left-menu-max-width)] mt-[var(--logo-height)]' :
269
+ ! collapse . value && fixedHeader . value && ! fixedMenu . value ,
270
+ 'w-[calc(100%-var(--tab-menu-min-width)-var(--left-menu-max-width))] !left-[calc(var(--tab-menu-min-width)+var(--left-menu-max-width))] mt-[var(--logo-height)]' :
283
271
collapse . value && fixedHeader . value && fixedMenu . value ,
284
- 'w-[calc(100%-var(--tab-menu-max-width)-var(--left-menu-max-width))] !left-[var(--tab-menu-max-width)+var(--left-menu-max-width)] mt-[var(--logo-height)]' :
272
+ 'w-[calc(100%-var(--tab-menu-max-width)-var(--left-menu-max-width))] !left-[calc( var(--tab-menu-max-width)+var(--left-menu-max-width) )] mt-[var(--logo-height)]' :
285
273
! collapse . value && fixedHeader . value && fixedMenu . value
286
274
}
287
275
] }
0 commit comments