Polish sprint 2/2: layouts, UX consistency, pf2e conditions
Layout: - CombatantRow: action controls (damage/AC/move/remove) grouped into one right-aligned wrapper so they wrap together instead of scattering on narrow widths. - top bar: the campaign switcher now shrinks/truncates instead of overflowing on tablet widths. - character sheet header: stat coins go full-width grid on mobile; the name truncates and scales down on small screens. UX consistency: - player Cast and resource Spend/Regain no longer fail silently — Cast shows the reason, resource −/+ disable at their bounds. - the AI encounter builder now catches load failures and reports them; level-up advisor shows the human error message, not the error-kind enum. - section headers standardized on the .smallcaps design token across 16 files (replacing an ad-hoc uppercase class). - player HP bar uses the shared Meter primitive. pf2e depth: condition-effects table gains drained, dazzled, enfeebled, fatigued. FeatCard: dropped a dead text-xl wrapper left from the emoji purge. Left as documented (functional, off-theme, refactor-risky): the native confirm/prompt in Settings cloud-conflict and the session-password flow. Gate: 293 unit + 35 e2e + 2 realtime; tsc + build clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -151,7 +151,7 @@ function NoteEditor({
|
||||
|
||||
{/* Rendered preview with clickable links */}
|
||||
<div className="mt-4">
|
||||
<h3 className="mb-1 text-xs font-semibold uppercase tracking-wide text-muted">Preview</h3>
|
||||
<h3 className="mb-1 smallcaps">Preview</h3>
|
||||
<p className="whitespace-pre-wrap rounded-md border border-line bg-surface p-3 text-sm text-ink">
|
||||
{splitWikiLinks(body).map((part, i) =>
|
||||
part.link ? (
|
||||
@@ -172,7 +172,7 @@ function NoteEditor({
|
||||
|
||||
{backlinks.length > 0 && (
|
||||
<div className="mt-4">
|
||||
<h3 className="mb-1 text-xs font-semibold uppercase tracking-wide text-muted">Linked from</h3>
|
||||
<h3 className="mb-1 smallcaps">Linked from</h3>
|
||||
<div className="flex flex-wrap gap-1">
|
||||
{backlinks.map((n) => (
|
||||
<button key={n.id} onClick={() => onSelect(n.id)} className="rounded-md border border-line bg-surface px-2 py-1 text-xs text-ink hover:border-accent/40">
|
||||
|
||||
Reference in New Issue
Block a user