Skip to content

Commit

Permalink
removed debug styles, bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdc committed Sep 16, 2024
1 parent 07ef863 commit ee77824
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 55 deletions.
1 change: 1 addition & 0 deletions src/components/NavigationContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const NavigationContainer = () => {
callback: () => {
toggleZenMode();
lockFocus(plugin);
workspace.trigger("vertical-tabs:update-toggle");
},
});
}, []);
Expand Down
78 changes: 23 additions & 55 deletions src/styles/ToggleSidebar.scss
Original file line number Diff line number Diff line change
@@ -1,63 +1,35 @@
.is-hidden-frameless:not(.is-fullscreen) {
.workspace-tabs {
&.vt-mod-top-left-space .workspace-tab-header-container {
.is-hidden-frameless {
&:not(.is-fullscreen) {
.workspace-tabs.vt-mod-top-left-space .workspace-tab-header-container {
padding-left: calc(var(--size-4-2) + var(--frame-left-space));
}

&.vt-mod-top-right-space .workspace-tab-header-container {
.workspace-tabs.vt-mod-top-right-space .workspace-tab-header-container {
padding-right: calc(var(--size-4-2) + var(--frame-right-space));
}

&.vt-mod-top-left-space {
border: 2px solid green;

&::before {
content: "Top Left";
position: absolute;
top: 0;
left: 0;
z-index: 10;
color: green;
background-color: lightgreen;
}
}

&.vt-mod-top-right-space {
border: 2px solid green;

&::after {
content: "Top Right";
position: absolute;
top: 0;
right: 0;
z-index: 10;
color: green;
background-color: lightgreen;
}
}
}

&:not(.mod-macos) {
.workspace-tabs {
&.vt-mod-top-left-space .workspace-tab-header-container:before {
-webkit-app-region: no-drag;
content: "";
height: 100%;
left: 0;
top: 0;
position: absolute;
width: var(--frame-left-space);
}
.workspace-tabs.vt-mod-top-left-space
.workspace-tab-header-container:before {
-webkit-app-region: no-drag;
content: "";
height: 100%;
left: 0;
top: 0;
position: absolute;
width: var(--frame-left-space);
}

&.vt-mod-top-right-space .workspace-tab-header-container:after {
-webkit-app-region: no-drag;
content: "";
height: 100%;
right: 0;
top: 0;
position: absolute;
width: var(--frame-right-space);
}
.workspace-tabs.vt-mod-top-right-space
.workspace-tab-header-container:after {
-webkit-app-region: no-drag;
content: "";
height: 100%;
right: 0;
top: 0;
position: absolute;
width: var(--frame-right-space);
}
}
}
Expand All @@ -68,7 +40,3 @@
.workspace-tab-header-container {
padding-right: 38px;
}

.sidebar-toggle-button.vt-mod-toggle {
background-color: red !important;
}

0 comments on commit ee77824

Please sign in to comment.