Skip to content

Commit 2e3c392

Browse files
authored
Merge pull request #5768 from nextcloud-libraries/backport/5766/next
[next] Fix input field label alignment
2 parents 64e3dc3 + 348c3f8 commit 2e3c392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NcInputField/NcInputField.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ export default {
430430
position: absolute;
431431
margin-inline: 14px 0;
432432
max-width: fit-content;
433-
inset-block-start: 11px;
433+
inset-block-start: calc((var(--default-clickable-area) - var(--default-line-height)) / 2); // center the label vertically
434434
inset-inline: 0;
435435
// Fix color so that users do not think the input already has content
436436
color: var(--color-text-maxcontrast);

0 commit comments

Comments
 (0)