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

This commit is contained in:
charlie
2024-06-17 15:41:05 +08:00
parent b67035bc9b
commit 939bdc9b74
2 changed files with 16 additions and 11 deletions

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;
}