Use margin, not padding as that causes weird looking buttons if slotted.

This commit is contained in:
2025-01-19 17:15:49 +01:00
parent 5b804a8ec3
commit 77057c39e2
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@tp/tp-input", "name": "@tp/tp-input",
"version": "1.1.0", "version": "1.1.1",
"description": "", "description": "",
"main": "tp-input.js", "main": "tp-input.js",
"scripts": { "scripts": {

View File

@@ -79,12 +79,12 @@ class TpInput extends BaseElement {
} }
.prefix ::slotted([slot="prefix"]) { .prefix ::slotted([slot="prefix"]) {
padding-right: 5px; margin-right: 5px;
white-space: nowrap; white-space: nowrap;
} }
.suffix ::slotted([slot="suffix"]) { .suffix ::slotted([slot="suffix"]) {
padding-left: 5px; margin-left: 5px;
white-space: nowrap; white-space: nowrap;
} }
` `