#301: stop /settings scrolling horizontally at 320px #309

Merged
opus-5 merged 8 commits from issue-301-settings-reflow into main 2026-08-01 13:34:38 +02:00
2 changed files with 78 additions and 70 deletions
Showing only changes of commit 69882ecbea - Show all commits

View File

@ -172,6 +172,7 @@ function TokenList({ tokens }: { tokens: ApiTokenView[] }): React.JSX.Element {
return ( return (
<> <>
<FormError error={error} /> <FormError error={error} />
<div className="table-scroll" tabIndex={0} role="region" aria-label={t('section.title')}>
<table className="table api-tokens__table"> <table className="table api-tokens__table">
<thead> <thead>
<tr> <tr>
@ -218,6 +219,7 @@ function TokenList({ tokens }: { tokens: ApiTokenView[] }): React.JSX.Element {
))} ))}
</tbody> </tbody>
</table> </table>
</div>
</> </>
); );
} }

View File

@ -85,6 +85,7 @@ export function FeedTokensSection(): React.JSX.Element {
)} )}
{tokens.data && tokens.data.length === 0 && <p>{t('feed.empty')}</p>} {tokens.data && tokens.data.length === 0 && <p>{t('feed.empty')}</p>}
{tokens.data && tokens.data.length > 0 && ( {tokens.data && tokens.data.length > 0 && (
<div className="table-scroll" tabIndex={0} role="region" aria-label={t('feed.title')}>
<table className="table"> <table className="table">
<thead> <thead>
<tr> <tr>
@ -103,7 +104,11 @@ export function FeedTokensSection(): React.JSX.Element {
<td>{formatTime(token.createdAt)}</td> <td>{formatTime(token.createdAt)}</td>
<td>{token.lastUsedAt ? formatTime(token.lastUsedAt) : '—'}</td> <td>{token.lastUsedAt ? formatTime(token.lastUsedAt) : '—'}</td>
<td> <td>
<button type="button" className="linklike" onClick={() => void remove(token.id)}> <button
type="button"
className="linklike"
onClick={() => void remove(token.id)}
>
{t('feed.delete')} {t('feed.delete')}
</button> </button>
</td> </td>
@ -111,6 +116,7 @@ export function FeedTokensSection(): React.JSX.Element {
))} ))}
</tbody> </tbody>
</table> </table>
</div>
)} )}
</section> </section>
); );