Style the council VERDICT box as a stamp, not full-width crooked bar #92
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_shrimp#92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The VERDICT box (shown after "CONSULTING THE COUNCIL") spans the full width and is tilted with
rotate(-1deg), so it reads as a crooked bar rather than a stamp.Desired
Make it look like a stamp:
Location
crates/hero_shrimp_web/ui/src/components/visuals/CouncilRoundtable.tsxL60-66 — the verdictShowblock (rounded-md border border-good/50 bg-good/10 p-2,transform: rotate(-1deg)).Implementation Spec for Issue #92
Objective
Restyle the council verdict box in
CouncilRoundtable.tsxso it reads as a deliberate stamp/badge — sized to its content with a capped max width — rather than a full-width bar that looks accidentally tilted.Findings
goodcolor tokens are CSS-variable-backed intailwind.config.js, sobg-good/10/border-good/50opacity modifiers are valid.BuildReport.tsxalready has a stamp idiom: a content-sizedinline-flexbadge withfont-bold, a solid border, andanimation: stampThud ..., and it does not set its owntransform— the tilt comes from the keyframe.transform: rotate(-1deg), so the tilt reads as a crooked line. (The sharedstampThudkeyframe also resolves torotate(-8deg), so there is a snap when the entrance animation ends.)Files to Modify
crates/hero_shrimp_web/ui/src/components/visuals/CouncilRoundtable.tsx— the verdictShowblock (L60-66). Only file changed; no CSS/config changes.Implementation Plan
Step 1: Make the verdict box content-sized, capped, and drop the stray inline rotation
File:
crates/hero_shrimp_web/ui/src/components/visuals/CouncilRoundtable.tsxCurrent:
Replacement:
inline-block+max-w-[28rem]so the box shrink-wraps to content and is capped (no longer full-width).transform: rotate(-1deg); the deliberate stamp tilt now comes solely from thestampThudkeyframe, matching the BuildReport stamp.border->border-2,border-good/50->border-good/60, addshadow-sm, make the labelfont-bold, paddingp-2->px-3 py-2.anim-stampand theanimationinline style so theprefers-reduced-motionguard still applies.Step 2: Verify & build
crates/hero_shrimp_web/ui.Acceptance Criteria
transform: rotate(-1deg)removed.anim-stampclass +stampThudanimation retained (reduced-motion guard intact).CouncilRoundtable.tsxmodified.Notes
max-w-[28rem]is a cap (not a fixed width) so short verdicts stay compact while multi-line verdicts wrap.stampThudkeyframe, which also affects the BuildReport stamp — out of scope here.Build / Test Results
This UI package (
crates/hero_shrimp_web/ui) has no unit test suite (only abuildscript). Validation was done via TypeScript typecheck and the production build.vite build: PASS — 99 modules transformed, built successfully, no errors.tsc --noEmit: the changed file (CouncilRoundtable.tsx) introduces no type errors. (Pre-existing type errors exist in unrelated files: ChatActivity.tsx, CostBadge.tsx, HeroWelcome.tsx, store.ts — these are unchanged by this issue.)The styling change compiles cleanly and produces the expected build output.
Implementation Summary
Restyled the council verdict box so it reads as a deliberate stamp/badge instead of a full-width crooked bar.
Changes
crates/hero_shrimp_web/ui/src/components/visuals/CouncilRoundtable.tsx(verdictShowblock):inline-block max-w-[28rem]so the box shrink-wraps to its content and is capped, no longer spanning full width.transform: rotate(-1deg); the deliberate stamp tilt now comes solely from the existingstampThudentrance keyframe, matching theBuildReport.tsxstamp idiom and eliminating the post-animation snap.bordertoborder-2,border-good/50toborder-good/60, addedshadow-sm, paddingp-2topx-3 py-2, and made the labelfont-bold.anim-stampclass andstampThudanimation so theprefers-reduced-motionguard still applies.crates/hero_shrimp_web/static/viavite build.Validation
vite build: PASS (99 modules transformed, no errors).Acceptance Criteria
transform: rotate(-1deg)removed.anim-stampclass +stampThudanimation retained.CouncilRoundtable.tsxsource modified (plus regenerated build assets).