Skip to content

Commit 275033c

Browse files
authored
Merge pull request #7189 from nextcloud/backport/7185/stable31
[stable31] fix: Adjust padding in table cell and header components
2 parents 53dfadc + 6ee44a7 commit 275033c

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/css/prosemirror.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,18 +336,15 @@ div.ProseMirror {
336336
border-left: 0;
337337
vertical-align: top;
338338
max-width: 100%;
339-
line-height: var(--default-clickable-area);
340339
&:first-child {
341340
border-left: 1px solid var(--table-color-border);
342341
}
343342
}
344343
td {
345-
padding: 0 0 0 0.75em;
346344
border-top: 0;
347345
color: var(--color-main-text);
348346
}
349347
th {
350-
padding: 0 0 0 0.75em;
351348
font-weight: normal;
352349
border-bottom-color: var(--table-color-heading-border);
353350
color: var(--table-color-heading);

src/nodes/Table/TableCellView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ td {
118118
.content {
119119
flex: 1 1 0;
120120
margin: 0;
121+
padding: calc((var(--default-clickable-area) - var(--default-font-size) * 1.5) / 2) 0.75em;
121122
}
122123
123124
.action-item {

src/nodes/Table/TableHeaderView.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,17 @@ export default {
181181
</script>
182182

183183
<style scoped lang="scss">
184+
div[contenteditable=true] th .content {
185+
padding-right: 0;
186+
}
184187
th {
185188
186189
.content {
187190
margin: 0;
188191
flex-grow: 1;
192+
padding: calc((var(--default-clickable-area) - var(--default-font-size) * 1.5) / 2) 0.75em;
189193
}
194+
190195
.action-item {
191196
opacity: 50%;
192197
}

0 commit comments

Comments
 (0)