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:
@@ -63,12 +63,14 @@ export class YjCombobox extends LitElement {
|
||||
:host {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.combobox-wrapper {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
input {
|
||||
@@ -80,8 +82,8 @@ export class YjCombobox extends LitElement {
|
||||
font-size: var(--yj-text-md);
|
||||
font-family: inherit;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
|
||||
@@ -194,7 +194,7 @@ export class SmartPlaylistEditor extends LitElement {
|
||||
display: grid;
|
||||
grid-template-columns: 160px 140px 1fr 28px;
|
||||
gap: 6px;
|
||||
align-items: start;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.rule-row.between-row {
|
||||
@@ -239,6 +239,7 @@ export class SmartPlaylistEditor extends LitElement {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
align-self: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border: none;
|
||||
@@ -248,7 +249,6 @@ export class SmartPlaylistEditor extends LitElement {
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
padding: 0;
|
||||
margin-top: 2px;
|
||||
transition: color 0.15s ease, background-color 0.15s ease;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user