Skip to content

Commit

Permalink
fix(kit): fix placeholder horizontal alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov committed Dec 3, 2024
1 parent 23e08f5 commit 9e3c7d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/kit/components/input-inline/input-inline.style.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import '@taiga-ui/core/styles/taiga-ui-local';

@safari-safe-space: 1px;

tui-input-inline {
position: relative;
display: inline-block;
Expand All @@ -12,14 +14,15 @@ tui-input-inline {

> .t-before {
padding-right: 0.02em; // to prevent caret shaking
margin-left: 1px; // to prevent hiding characters in safari
margin-left: @safari-safe-space; // to prevent hiding characters in safari
white-space: pre;
visibility: hidden;
}

> .t-placeholder {
display: inline-block;
min-inline-size: 1px;
margin-left: -@safari-safe-space;
}

> input {
Expand Down

0 comments on commit 9e3c7d9

Please sign in to comment.