efemkay / obsidian-modular-css-layout

CSS Layout hack for Obsidian.md
https://efemkay.github.io/obsidian-modular-css-layout/
GNU General Public License v3.0
935 stars 74 forks source link

Weird images on Minimal Theme with "MCL Gallery Cards" snippet #36

Closed Rikiub closed 1 year ago

Rikiub commented 1 year ago

First, I will say that I love your snippets! They bring my Obsidian notes to life!

But... recently "MCL Gallery Cards" has issues when I use it with the Minimal Theme.

Issues like:

Big images in live preview

Minimal Theme Obsidian 20230526231059

Default Theme (Expected) Obsidian 20230526231111

Right-Left bugs

Minimal Theme (Live preview) Obsidian 20230526231130

Minimal Theme (Reading view) Obsidian 20230526231140

Default Theme (Expected) Obsidian 20230526231150

efemkay commented 1 year ago

@Rikiub, Yup. that's indeed a bug. i've published 0.9.2 and that should fix it.

on that note if you want to have the float also works in live preview the syntax should be [[filename.jgp|float-right|300]]. if you don't have the float word i.e. [[filename.jpg|right|300]] it will only works in reading view. the reason being, editing still isn't ideal when you use float but float-right is ok (when text is on the left, selecting and editing text is still fine)

Rikiub commented 1 year ago

The "Big images in live preview" is fixed, excelent!

But "Right-Left bugs" still have bugs. Maybe is a issue with the Minimal Theme? This don't happen with others themes, only with that theme.

efemkay commented 1 year ago

When using minimal theme, u have to enter cssclass: minimal-float in the frontmatter. It's a workaround I have to employ because how minimal changes quite a number of things.

Btw, this is how u do so

---
cssclass: minimal-float
---

The rest of your content 
Rikiub commented 1 year ago

Ah, I see, It's working again.

Thanks to reply! So I close this issue.