Skip to content

Commit

Permalink
Remove extra space when hiding sidebar buttons on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kepano committed Aug 25, 2024
1 parent b2da68c commit 70ab4da
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-hider",
"name": "Hider",
"version": "1.5.0",
"version": "1.5.1",
"minAppVersion": "1.6.0",
"description": "Hide UI elements such as tooltips, status, titlebar and more",
"author": "@kepano",
Expand Down
29 changes: 16 additions & 13 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,63 +1,66 @@
/* Hides vault name */
.hider-vault .workspace-sidedock-vault-profile,
body.hider-vault:not(.is-mobile) .workspace-split.mod-left-split .workspace-sidedock-vault-profile {
display:none;
display:none;
}

/* Hide tabs */
.hider-tabs .mod-root .workspace-tabs .workspace-tab-header-container {
display: none;
display: none;
}

.hider-tabs .mod-top-left-space .view-header {
padding-left: var(--frame-left-space);
padding-left: var(--frame-left-space);
}

/* Hide sidebar buttons */
.hider-sidebar-buttons .sidebar-toggle-button.mod-right,
.hider-sidebar-buttons .sidebar-toggle-button.mod-left {
display: none;
display: none;
}
.hider-sidebar-buttons.mod-macos.is-hidden-frameless:not(.is-popout-window) .workspace .workspace-tabs.mod-top-right-space .workspace-tab-header-container {
padding-right: 4px;
padding-right: 4px;
}
.hider-sidebar-buttons.mod-macos {
--frame-left-space: 60px;
}

/* Hide meta */
.hider-meta .markdown-reading-view .metadata-container {
display:none;
display:none;
}

/* Hide scrollbars */
.hider-scroll ::-webkit-scrollbar {
display:none;
display:none;
}

/* Hide status */
.hider-status .status-bar {
display:none;
display:none;
}

/* Hide tooltips */
.hider-tooltips .tooltip {
display:none;
display:none;
}

/* Hide search suggestions */
.hider-search-suggestions .suggestion-container.mod-search-suggestion {
display: none;
display: none;
}

/* Hide search count flair */
.hider-search-counts .tree-item-flair:not(.tag-pane-tag-count) {
display:none;
display:none;
}

/* Hide instructions */
.hider-instructions .prompt-instructions {
display:none;
display:none;
}

/* Hide file nav header */
.hider-file-nav-header .workspace-leaf-content[data-type=file-explorer] .nav-header {
display: none;
display: none;
}

0 comments on commit 70ab4da

Please sign in to comment.