Skip to content

Commit

Permalink
fix(ui/fieldDecorator): placeholder width exceeds container size
Browse files Browse the repository at this point in the history
  • Loading branch information
a145789 committed May 7, 2023
1 parent 272ffd5 commit 38cb3a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/varlet-ui/src/field-decorator/fieldDecorator.less
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
}

&__placeholder {
width: 100%;
max-width: 100%;
position: absolute;
top: 0;
left: 0;
Expand All @@ -75,7 +75,7 @@
cursor: inherit;
transform: translate(0, 0) scale(1);
transform-origin: left;
transition: transform 0.28s var(--cubic-bezier), color 0.25s;
transition: transform 0.28s var(--cubic-bezier), color 0.25s, max-width 0.28s;
}

&__placeholder-text {
Expand All @@ -93,7 +93,7 @@
}

&--placeholder-hint {
width: calc(1.33 * var(--field-decorator-legend-max-width, var(--filed-decorator-controller-width)));
max-width: calc(1.33 * var(--field-decorator-legend-max-width, var(--filed-decorator-controller-width)));
}

&--placeholder-hidden {
Expand Down

0 comments on commit 38cb3a6

Please sign in to comment.