Quota override cell stays a table cell, flex on an inner wrapper (#329)
All checks were successful
All checks were successful
Same defect and same fix as the user list's actions cell (#177): display:flex directly on the override td removed its table-cell behaviour, so the cell stopped growing to row height and its bottom border no longer met the row's — visibly uneven separator lines (Stefan's screenshot from the self-hosting walkthrough). The flex layout now lives on .quota-row__override-inner. Measured locally like #177: bottom-delta across all cells of every quota row was 24–49 px before, 0 px after (override set, so the cell carries input + two link buttons); admin-quotas e2e pack green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017aviRTgWCcAHUh1SBoxf6P
This commit is contained in:
parent
d2be1116bc
commit
ec4e086bc7
@ -138,21 +138,26 @@ function QuotaRow({
|
|||||||
<td>{t(`keys.${line.key}`)}</td>
|
<td>{t(`keys.${line.key}`)}</td>
|
||||||
<td>{line.instanceDefault}</td>
|
<td>{line.instanceDefault}</td>
|
||||||
<td className="quota-row__override">
|
<td className="quota-row__override">
|
||||||
<input
|
{/* Flex lives on the inner div: a td with display:flex stops behaving
|
||||||
type="number"
|
like a table cell and its bottom border no longer meets the row's
|
||||||
min={0}
|
(same fix as the user list's actions cell, #177). */}
|
||||||
className="quota-row__input"
|
<div className="quota-row__override-inner">
|
||||||
value={draft}
|
<input
|
||||||
onChange={(e) => onDraft(e.target.value)}
|
type="number"
|
||||||
/>
|
min={0}
|
||||||
<button type="button" className="linklike" onClick={onSet}>
|
className="quota-row__input"
|
||||||
{t('overrides.set')}
|
value={draft}
|
||||||
</button>
|
onChange={(e) => onDraft(e.target.value)}
|
||||||
{line.override !== null && (
|
/>
|
||||||
<button type="button" className="linklike" onClick={onClear}>
|
<button type="button" className="linklike" onClick={onSet}>
|
||||||
{t('overrides.clear')}
|
{t('overrides.set')}
|
||||||
</button>
|
</button>
|
||||||
)}
|
{line.override !== null && (
|
||||||
|
<button type="button" className="linklike" onClick={onClear}>
|
||||||
|
{t('overrides.clear')}
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="quota-row__effective">{line.effective}</td>
|
<td className="quota-row__effective">{line.effective}</td>
|
||||||
<td className="quota-row__usage">
|
<td className="quota-row__usage">
|
||||||
|
|||||||
@ -3048,7 +3048,7 @@ ul[data-type='task_list'] li p:last-of-type {
|
|||||||
margin-bottom: var(--space-2);
|
margin-bottom: var(--space-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.quota-row__override {
|
.quota-row__override-inner {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: var(--space-2);
|
gap: var(--space-2);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user