Skip to content

Commit c55546b

Browse files
committed
fix: remove margin left for header only mode
1 parent 0cace2f commit c55546b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adminforth/spa/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383

8484
<div class="af-content-wrapper transition-all duration-300 ease-in-out max-w-[100vw]"
8585
:style="{
86-
marginLeft: isSidebarIconOnly ? '4.5rem' : expandedWidth,
87-
maxWidth: isSidebarIconOnly ? 'calc(100% - 4.5rem)' : `calc(100% - ${expandedWidth})`
86+
marginLeft: headerOnlyLayout ? 0 : isSidebarIconOnly ? '4.5rem' : expandedWidth,
87+
maxWidth: headerOnlyLayout ? '100%' : isSidebarIconOnly ? 'calc(100% - 4.5rem)' : `calc(100% - ${expandedWidth})`
8888
}"
8989
v-if="loggedIn && routerIsReady && loginRedirectCheckIsReady && defaultLayout">
9090
<div class="p-0 dark:border-gray-700 mt-14">

0 commit comments

Comments
 (0)