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

Bug: {.three-column-list-block} artefacts on lists #26

Closed spiritualgeek closed 1 year ago

spiritualgeek commented 1 year ago

There are some strange artefacts occurring when utilising the {.[two|three]-column-list-block} functionality

Graphic showing what is looks like 58411

Example that can be used to reproduce

- **A section**
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
- **A section**
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
- **A section**
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
- **A section**
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
- **A section**
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
- **A section**
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
- **A section**
    - An item which is but an item
    - An item which is but an item
    - An item which is but an item
{.three-column-list-block}

Furthermore, you utilise this twice on the same page it seems to just not work at all

Does with default theme as well

Thanks

spiritualgeek commented 1 year ago

Just an update.

#mcl/list-card seems to be the best alternative, but I prefer {.three-column-list-block}

PS: A {.four-column-list-block} would also be welcome :)

efemkay commented 1 year ago

when using markdown attributes custom classes like the one i use {.three-column-list-block} it has limitation when the last list item is indented. it stems from how obsidian expect a empty line after a list (u can test with simple example below).

anyway, there's also #mcl/list-column that's closer to columns per example u stated. #mcl/list-card uses grid like structure left to right first then flow next line. #mcl/list-column doesn't specify column as it depends on the min-width u define (default is 200px), but anyway i think i can introduce 3- or 4- columns using #mcl/list-xxx

i'll keep this open until i have that implemented

- main bullet 1
- main bullet 2
    - sub one
    - sub two
paragraph without empty line after list
spiritualgeek commented 1 year ago

Quick update - #mcl/list-column works fine, and the last section is "picked" up, but I still have the issue with the first column not rendering bullets properly

efemkay commented 1 year ago

@spiritualgeek i've released 0.8.1 that fixed the first column bullets not rendering properly.

on the use of tag #mcl/list-column, it was MCL relatively newer feature but i would recommend that more for the following reason

spiritualgeek commented 1 year ago

Thanks - I updated, but it still seems to be doing it with the first column?

Appreciate the info and update

efemkay commented 1 year ago

Ok that's weird, can u help me out a bit

The only reason I can think of is that some other CSS might have higher priority than my fix.

spiritualgeek commented 1 year ago

I have been hectic, sorry

All snippets off and it still does it. Also in restricted mode as you can see in the image

45974

efemkay commented 1 year ago

Hey @spiritualgeek I think I fully fixed this. Lemme know if this still an issue on ur side.

efemkay commented 1 year ago

i'll mark this as closed. if issue still persist, you may open up new issue