Skip to content

Commit 6e36635

Browse files
committed
Make baseline-alignment work for empty, readonly rich-text fields
1 parent 481d75f commit 6e36635

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

frontend/viewer/src/lib/components/lcm-rich-text-editor/lcm-rich-text-editor.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@
236236
:global(.customized ~ .customized) {
237237
margin-left: 2px;
238238
}
239+
240+
&::before {
241+
/* Ensure baseline-alignment even works when empty */
242+
content: '\200B';
243+
}
239244
}
240245
</style>
241246

0 commit comments

Comments
 (0)