fix(field): prevent input size changes when showing clear icon #1361

Merged
alexandre merged 1 commits from 5338-clear_displacement into dev 2023-03-02 09:45:48 +00:00
3 changed files with 8 additions and 1 deletions

View File

@ -19,6 +19,10 @@
padding-right: 0;
}
}
& > .icons.pre {
min-width: 22px
}
}
&.readonly > .container > .icons.post {
display: none;

View File

@ -12,7 +12,7 @@
<span class="required">*</span>
</label>
</div>
<div class="icons pre">
<div class="icons pre" ng-class="{'clearable': $ctrl.clearDisabled != true}">
<vn-icon ng-show="::$ctrl.clearDisabled != true"
icon="clear"
translate-attr="{title: 'Clear'}"

View File

@ -151,6 +151,9 @@
display: none;
}
}
& > .icons.pre.clearable {
min-width: 22px
}
& > .underline {
position: absolute;
bottom: 0;