Compressing icons in left sidebar to get back more space

The longer I use Logseq, the more favorites and recent documents take up the left sidebar. For this reason I wanted to compress some of the icons/buttons for built in features like journal, whiteboards, flashcards, etc.

Here is what my sidebar looks like now:

compressed

I added this to my custom.css:


/* Put nav buttons on one row, no text */
.nav-header {
  margin-left: 2px;
}

.nav-header .flex-1 {
  display: none
}

.nav-header .item {
  margin-left: 4px;
  padding: 2px !important;
}

.nav-header .ui__icon {
  margin-right: 0px !important;
}

.nav-header {
  flex-direction: row;
}

.flashcards-nav .inline-block {
  margin-left: 	2px;
  padding: 0px;
}

Some mirror customization to add colorful icons, adjust icons size and alignment.
image

/* Put nav buttons on one row, no text */
.nav-header {
    margin-left: 2px;
}

.nav-header .flex-1 {
    display: none
}

.nav-header .item {
    margin-left: 4px;
    padding: 4px !important;
}

.nav-header .ui__icon {
    margin-right: 0px !important;

}

.nav-header {
    flex-direction: row;
}

.flashcards-nav .inline-block {
    margin-left: 2px;
    padding: 0px;
    font-size: 12px;
    vertical-align: middle;
}


#left-sidebar .item>.ti {
    font-size: 18px;
    vertical-align: middle;
}

.tie-whiteboard:before {
    content: "\ea1d";
    font-size: 20px;
    color: #78C0A8;
}

#left-sidebar .ls-icon-infinity:before {
    content: "\ea38";
    color: #c8aa00;
}

#left-sidebar .ls-icon-hierarchy:before {
    content: "\edff";
    color: brown;
}

#awUI-calendar-menu .ls-icon-calendar-time:before {
    content: "\ee21";
    color: #db18ed;
}
4 Likes

Could you consider a mouse over text.

Might be possible to add with CSS only with javascript - Add text hover image without html - Stack Overflow

The linked CSS doesn’t work well in newer versions. Wonder if there’s a plugin for this (or updated CSS)?

image

Actually, I find it easier to just hide it

nav[aria-label="Navigation menu"] {
    display: none;
}

Hey, this is my working CSS to achieve the above condensed navigation menu:

/* nav buttons on one row, no labels */
.nav-header {
    margin-left: 10px;
}

.nav-header .flex-1 {
    display: none
}

.nav-header .item {
    margin-left: 4px;
    padding: 4px !important;
}

.nav-header .ui__icon {
    margin-right: 0px !important;
}

/* hide keyboard shortcut hint to fix hover style */
.nav-header .item .ml-1 {
    display: none;
}

.nav-header {
    flex-direction: row;
}

#left-sidebar .item>.ti {
    font-size: 18px;
    vertical-align: middle;
}

.tie-whiteboard:before {
    font-size: 20px;
}

image
image
(screenshots created with Logseq One Theme)

2 Likes

I can confirm that this snippet is working fine for me on version 0.10.9. Using ‘Catppuccin Latte’ as a theme.

Many thanks