Fix mobile favorites editor layout

This commit is contained in:
2026-06-12 08:45:34 -07:00
parent 20f6d4d192
commit 562f2b8612
2 changed files with 23 additions and 8 deletions

View File

@@ -1491,8 +1491,12 @@ function createFavoriteManagerRow(item, index) {
remove.dataset.removeFavorite = String(index); remove.dataset.removeFavorite = String(index);
remove.textContent = 'Remove'; remove.textContent = 'Remove';
const actions = document.createElement('div');
actions.className = 'favorite-actions';
actions.append(edit, remove);
summary.append(title, url); summary.append(title, url);
row.append(summary, edit, remove); row.append(summary, actions);
return row; return row;
} }

View File

@@ -473,7 +473,7 @@ audio {
.favorite-manager-row { .favorite-manager-row {
display: grid; display: grid;
grid-template-columns: minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr) auto;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
min-height: 4rem; min-height: 4rem;
@@ -509,12 +509,14 @@ audio {
min-width: 5.2rem; min-width: 5.2rem;
} }
.favorite-actions {
display: flex;
gap: 0.5rem;
min-width: 0;
}
.wizard-step { .wizard-step {
color: var(--soft); display: none;
font-size: 0.86rem;
font-weight: 800;
letter-spacing: 0;
text-transform: uppercase;
} }
.wizard-field { .wizard-field {
@@ -603,12 +605,21 @@ audio {
.favorite-manager-row { .favorite-manager-row {
grid-template-columns: 1fr; grid-template-columns: 1fr;
align-items: stretch;
gap: 0.7rem;
} }
.favorite-action { .favorite-actions {
display: grid;
grid-template-columns: 1fr 1fr;
width: 100%; width: 100%;
} }
.favorite-actions .favorite-action {
width: 100%;
min-width: 0;
}
.remove-favorite, .remove-favorite,
.secondary-button, .secondary-button,
.primary-button { .primary-button {