Use p as default element in trix and add bottom margin
Some checks failed
/ Run tests (push) Failing after 15s
/ Run system tests (push) Failing after 15s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-10-28 00:12:40 +01:00
parent f21f75ad62
commit 2a4100a7a9
2 changed files with 7 additions and 1 deletions

View file

@ -107,7 +107,12 @@ $enable-rounded: false;
border: var(--bs-border-width) solid var(--bs-border-color) !important; border: var(--bs-border-width) solid var(--bs-border-color) !important;
border-radius: 0 !important; border-radius: 0 !important;
} }
p {
margin-bottom: 0.6rem;
}
p:last-child {
margin-bottom: 0;
}
} }
trix-toolbar .trix-dialog { trix-toolbar .trix-dialog {

View file

@ -6,3 +6,4 @@ import * as bootstrap from "bootstrap"
import "trix" import "trix"
import "@rails/actiontext" import "@rails/actiontext"
Trix.config.blockAttributes.default.tagName = 'p';