fix(ui): alignments for the bullet whithin the heading block

experiment/tanstack-table
charlie 2024-06-17 15:41:05 +08:00
parent b67035bc9b
commit 939bdc9b74
2 changed files with 16 additions and 11 deletions

View File

@ -2970,7 +2970,8 @@
(dnd-separator-wrapper block children block-id slide? true false))
[:div.block-main-container.flex.flex-row.pr-2.gap-1
{:on-touch-start (fn [event uuid] (block-handler/on-touch-start event uuid))
{:data-has-heading (some-> block :block/properties (pu/lookup :logseq.property/heading))
:on-touch-start (fn [event uuid] (block-handler/on-touch-start event uuid))
:on-touch-move (fn [event]
(block-handler/on-touch-move event block uuid edit? *show-left-menu? *show-right-menu?))
:on-touch-end (fn [event]

View File

@ -228,8 +228,12 @@
@apply flex flex-1;
}
&:has(.dsl-query) {
&:has(.dsl-query), &:has(.embed-page) {
@apply flex flex-row w-full;
> .embed-page {
@apply w-full;
}
}
.dsl-query {
@ -409,8 +413,8 @@
.block-main-container {
@apply min-h-[24px];
&:has(h1.as-heading), &:has(textarea.h1) {
.block-control-wrap {
&[data-has-heading="1"], &:has(textarea.h1) {
> .block-control-wrap {
@apply relative top-4;
}
@ -421,8 +425,8 @@
}
}
&:has(h2.as-heading), &:has(textarea.h2) {
.block-control-wrap {
&[data-has-heading="2"], &:has(textarea.h2) {
> .block-control-wrap {
@apply relative top-3;
}
@ -433,8 +437,8 @@
}
}
&:has(h3.as-heading), &:has(textarea.h3) {
.block-control-wrap {
&[data-has-heading="3"], &:has(textarea.h3) {
> .block-control-wrap {
@apply relative top-[2px];
}
@ -445,13 +449,13 @@
}
}
&:has(h5.as-heading) {
.block-control-wrap {
&[data-has-heading="5"] {
> .block-control-wrap {
@apply relative -top-[1px];
}
}
&:has(h6.as-heading), &:has(textarea.h6) {
&[data-has-heading="6"], &:has(textarea.h6) {
h6.as-heading, textarea.h6 {
@apply pt-1;
}