Use p as default element in trix and add bottom margin
This commit is contained in:
parent
f21f75ad62
commit
2a4100a7a9
2 changed files with 7 additions and 1 deletions
|
|
@ -107,7 +107,12 @@ $enable-rounded: false;
|
|||
border: var(--bs-border-width) solid var(--bs-border-color) !important;
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 0.6rem;
|
||||
}
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
trix-toolbar .trix-dialog {
|
||||
|
|
|
|||
|
|
@ -6,3 +6,4 @@ import * as bootstrap from "bootstrap"
|
|||
import "trix"
|
||||
import "@rails/actiontext"
|
||||
|
||||
Trix.config.blockAttributes.default.tagName = 'p';
|
||||
Loading…
Add table
Add a link
Reference in a new issue