Quota override cell stays a table cell, flex on an inner wrapper (#329) #330
@ -138,21 +138,26 @@ function QuotaRow({
|
||||
<td>{t(`keys.${line.key}`)}</td>
|
||||
<td>{line.instanceDefault}</td>
|
||||
<td className="quota-row__override">
|
||||
<input
|
||||
type="number"
|
||||
min={0}
|
||||
className="quota-row__input"
|
||||
value={draft}
|
||||
onChange={(e) => onDraft(e.target.value)}
|
||||
/>
|
||||
<button type="button" className="linklike" onClick={onSet}>
|
||||
{t('overrides.set')}
|
||||
</button>
|
||||
{line.override !== null && (
|
||||
<button type="button" className="linklike" onClick={onClear}>
|
||||
{t('overrides.clear')}
|
||||
{/* Flex lives on the inner div: a td with display:flex stops behaving
|
||||
like a table cell and its bottom border no longer meets the row's
|
||||
(same fix as the user list's actions cell, #177). */}
|
||||
<div className="quota-row__override-inner">
|
||||
<input
|
||||
type="number"
|
||||
min={0}
|
||||
className="quota-row__input"
|
||||
value={draft}
|
||||
onChange={(e) => onDraft(e.target.value)}
|
||||
/>
|
||||
<button type="button" className="linklike" onClick={onSet}>
|
||||
{t('overrides.set')}
|
||||
</button>
|
||||
)}
|
||||
{line.override !== null && (
|
||||
<button type="button" className="linklike" onClick={onClear}>
|
||||
{t('overrides.clear')}
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</td>
|
||||
<td className="quota-row__effective">{line.effective}</td>
|
||||
<td className="quota-row__usage">
|
||||
|
||||
@ -3048,7 +3048,7 @@ ul[data-type='task_list'] li p:last-of-type {
|
||||
margin-bottom: var(--space-2);
|
||||
}
|
||||
|
||||
.quota-row__override {
|
||||
.quota-row__override-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user