Desktop: unique option keys in editor selects (App info page error); long package names no longer push App folders cards wide

This commit is contained in:
CRTkafa 2026-10-23 09:30:22 +08:00
parent 43e394ef7d
commit 936ee15e38
2 changed files with 3 additions and 1 deletions

View file

@ -20,3 +20,5 @@
.scr-ignored .li:hover, .scr-ignored .li:focus-within { background: var(--ds-inset); opacity: 1; }
.scr-ignored .li .app-icon { width: 34px; height: 34px; filter: saturate(.55); }
.scr-ignored .card-body { padding: 4px 22px 18px; }
.scr-folders .store-badge { max-width: 100%; min-width: 0; }
.scr-folders .store-badge .mono-id { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

View file

@ -115,7 +115,7 @@ export function ChoiceField({ project, area, path, saved, label, options, hint,
<div className="ed-head"><label htmlFor={fid}>{label}{dirty && <span className="ed-dot" title={t('ed.unsavedField')} />}</label></div>
<select id={fid} className="input" value={cur} data-edit={`config:${path}`} onChange={ev => e.set(project.id, make(ev.target.value), area, saved === undefined ? null : saved)}>
{allowEmpty && <option value="">{t('ed.notSet')}</option>}
{options.map(([v, l]) => <option key={v} value={v}>{l}</option>)}
{options.map(([v, l], i) => <option key={`${v}-${i}`} value={v}>{l}</option>)}
</select>
{hint && <div className="ed-hint small muted">{hint}</div>}
<Issues issues={issues} />