From 986e7913b1822aaaf9f3f44c7389758fd6963ee3 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Fri, 1 Apr 2022 18:27:16 +0800 Subject: [PATCH] fix: threading in the first block of the embedded --- src/bullet_threading.scss | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/bullet_threading.scss b/src/bullet_threading.scss index 5040cc6..ec8244e 100644 --- a/src/bullet_threading.scss +++ b/src/bullet_threading.scss @@ -1,6 +1,9 @@ :root { --ls-block-bullet-active-color: var(--ls-link-text-color); - --ls-block-bullet-threading-width: var(--ls-block-bullet-threading-width-overwrite, 1px); + --ls-block-bullet-threading-width: var( + --ls-block-bullet-threading-width-overwrite, + 1px + ); } .block-control { @@ -127,9 +130,20 @@ } } +// A dirty fix for removing threading for the root blocks in embedded +:is(.embed-block > div, .embed-page) + > div + > div + > div + > div.ls-block + > div + > div.items-center::before { + border-color: transparent !important; +} + // Fix https://github.com/pengx17/logseq-plugin-bullet-threading/issues/1 @media (max-width: 640px) { - .ls-block[haschild=true] > div > .block-content-wrapper::before { + .ls-block[haschild="true"] > div > .block-content-wrapper::before { left: -11px; } }