mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 15:49:00 +02:00
chore(collections/board): normalize line height when editing
This commit is contained in:
parent
b4fa70d1d5
commit
519d76d809
@ -3,6 +3,9 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
|
--card-line-height: 1.1;
|
||||||
|
--card-padding: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.board-view-container {
|
.board-view-container {
|
||||||
@ -110,7 +113,7 @@
|
|||||||
.board-view-container .board-note {
|
.board-view-container .board-note {
|
||||||
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
|
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
|
||||||
margin: 0.65em 0;
|
margin: 0.65em 0;
|
||||||
padding: 0.5em;
|
padding: var(--card-padding);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -118,7 +121,7 @@
|
|||||||
border: 1px solid var(--main-border-color);
|
border: 1px solid var(--main-border-color);
|
||||||
transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease, margin-top 0.2s ease;
|
transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease, margin-top 0.2s ease;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
line-height: 1.1;
|
line-height: var(--card-line-height);
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@ -192,7 +195,8 @@
|
|||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.5em;
|
padding: var(--card-padding);
|
||||||
|
line-height: var(--card-line-height);
|
||||||
}
|
}
|
||||||
|
|
||||||
.board-view-container .board-note.editing textarea {
|
.board-view-container .board-note.editing textarea {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user