mugiwara85 / CodeblockCustomizer

Codeblock Customizer plugin for Obsidian
MIT License
147 stars 7 forks source link

Remove unnecessary css which controls the header width #62

Closed viocha closed 4 months ago

viocha commented 8 months ago

When the width is enabled, the header do not align with the codeblock. image When the width is disabed, it gets back to the normal appearance. image The original code is

.markdown-source-view .codeblock-customizer-header-container, .markdown-source-view .codeblock-customizer-header-container-specific {
    width: calc(var(--line-width-adaptive) - var(--folding-offset));
    margin-left: max(calc(50% + var(--folding-offset) - var(--line-width-adaptive)/2), calc(50% + var(--folding-offset) - var(--max-width)/2)) !important;
}
mugiwara85 commented 8 months ago

That's not unnecessary. It has a reason why it is there. But first of all provide some information. What theme are you using? Why do the icon looks like that? Did you apply some custom css?

viocha commented 8 months ago

I'm using the theme "Things" and there is no other custom css. image

mugiwara85 commented 8 months ago

Ok, I'll look into it, and get back to you

mugiwara85 commented 4 months ago

Available in current release (1.2.6). Should there be any problems please report back.