Implement the 027-ui-polish feature that adds six combatant row improvements (inline conditions, row-click stat block, hover-only remove button, AC shield shape, expanded concentration click target, larger d20 icon) plus top bar redesign with icon-only StepBack/StepForward navigation buttons, dark-themed scrollbars, and multiple UX fixes including stat block panel stability during initiative rolls and mobile touch safety for hidden buttons
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
37
apps/web/src/components/ac-shield.tsx
Normal file
37
apps/web/src/components/ac-shield.tsx
Normal file
@@ -0,0 +1,37 @@
|
||||
import { cn } from "../lib/utils";
|
||||
|
||||
interface AcShieldProps {
|
||||
readonly value: number | undefined;
|
||||
readonly onClick?: () => void;
|
||||
readonly className?: string;
|
||||
}
|
||||
|
||||
export function AcShield({ value, onClick, className }: AcShieldProps) {
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
onClick={onClick}
|
||||
className={cn(
|
||||
"relative inline-flex items-center justify-center text-sm tabular-nums text-muted-foreground transition-colors hover:text-primary",
|
||||
className,
|
||||
)}
|
||||
style={{ width: 28, height: 32 }}
|
||||
>
|
||||
<svg
|
||||
viewBox="0 0 28 32"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={1.5}
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
className="absolute inset-0 h-full w-full"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path d="M14 1.5 L2.5 6.5 L2.5 15 Q2.5 25 14 30.5 Q25.5 25 25.5 15 L25.5 6.5 Z" />
|
||||
</svg>
|
||||
<span className="relative text-xs font-medium leading-none">
|
||||
{value !== undefined ? value : "\u2014"}
|
||||
</span>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user