Skip to content

Commit

Permalink
Merge pull request #5891 from nextcloud-libraries/backport/5889/next
Browse files Browse the repository at this point in the history
[next] fix(style): adjust elements styles to unit-less line-height
  • Loading branch information
susnux authored Aug 1, 2024
2 parents 3c5eb13 + ced5927 commit 23e8b39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/NcInputField/NcInputField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export default {
position: absolute;
margin-inline: 14px 0;
max-width: fit-content;
inset-block-start: calc((var(--default-clickable-area) - var(--default-line-height)) / 2); // center the label vertically
inset-block-start: calc((var(--default-clickable-area) - 1lh) / 2); // center the label vertically
inset-inline: 0;
// Fix color so that users do not think the input already has content
color: var(--color-text-maxcontrast);
Expand Down
2 changes: 1 addition & 1 deletion src/components/NcListItem/NcListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ export default {
.list-item {
--list-item-padding: 8px;
// The content are two lines of text and respect the 1.5 line height
--list-item-height: calc(2 * var(--default-line-height));
--list-item-height: 2lh;
--list-item-border-radius: var(--border-radius-element, 32px);
// General styles
box-sizing: border-box;
Expand Down

0 comments on commit 23e8b39

Please sign in to comment.