fix: align combobox height to operator select via grid stretch

- Grid rows use align-items: stretch so all cells share the select's height
- Combobox host, wrapper, and input all set height: 100% to fill the cell
- Remove button uses align-self: center to stay centered instead of stretching
This commit is contained in:
2026-03-21 13:46:26 -04:00
parent 288215a97c
commit ebaa856e0c
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -63,12 +63,14 @@ export class YjCombobox extends LitElement {
:host { :host {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
height: 100%;
} }
.combobox-wrapper { .combobox-wrapper {
position: relative; position: relative;
display: inline-block; display: inline-block;
width: 100%; width: 100%;
height: 100%;
} }
input { input {
@@ -80,8 +82,8 @@ export class YjCombobox extends LitElement {
font-size: var(--yj-text-md); font-size: var(--yj-text-md);
font-family: inherit; font-family: inherit;
width: 100%; width: 100%;
height: 100%;
box-sizing: border-box; box-sizing: border-box;
height: 26px;
} }
input:focus { input:focus {
@@ -194,7 +194,7 @@ export class SmartPlaylistEditor extends LitElement {
display: grid; display: grid;
grid-template-columns: 160px 140px 1fr 28px; grid-template-columns: 160px 140px 1fr 28px;
gap: 6px; gap: 6px;
align-items: start; align-items: stretch;
} }
.rule-row.between-row { .rule-row.between-row {
@@ -239,6 +239,7 @@ export class SmartPlaylistEditor extends LitElement {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
align-self: center;
width: 24px; width: 24px;
height: 24px; height: 24px;
border: none; border: none;
@@ -248,7 +249,6 @@ export class SmartPlaylistEditor extends LitElement {
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: 14px;
padding: 0; padding: 0;
margin-top: 2px;
transition: color 0.15s ease, background-color 0.15s ease; transition: color 0.15s ease, background-color 0.15s ease;
} }