obsidian-floating-toc-plugin icon indicating copy to clipboard operation
obsidian-floating-toc-plugin copied to clipboard

If there are too many directories, , it will not be displayed completely, and the font is too small, can it be set to scroll mode?

Open zhl111 opened this issue 3 years ago • 3 comments

image

zhl111 avatar Jan 23 '22 05:01 zhl111

I fixed the bug, which was triggered by a css style Please modify the style.css file in the plugin directory:

.floating-toc[data-v-3bdd42b2] {
  list-style: none;
  margin: 0;
  padding: 0.1rem;
  position: absolute;
  top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  bottom: 40px;
  width: 2rem;
}
.floating-toc[data-reveal=true][data-v-3bdd42b2] {
  width: auto;
  overflow: auto;
}
.floating-toc[data-reveal=true][data-v-3bdd42b2]::-webkit-scrollbar {
                display: none;
            }


cumany avatar Feb 23 '22 01:02 cumany

Thank you, are you able to submit a PR? Thanks!

curtgrimes avatar Feb 23 '22 01:02 curtgrimes

Okay, I'll try.

cumany avatar Feb 23 '22 01:02 cumany