diff --git a/apps/web/index.html b/apps/web/index.html index 3d2b83f..b156749 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -2,7 +2,7 @@ - + diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index cb63b5a..1ad84a3 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -46,7 +46,10 @@ export function App() {
{!!actionBarAnim.showTopBar && (
@@ -85,7 +88,10 @@ export function App() {
{ const creatureId = addFromBestiary(result); - if (creatureId && panelView.mode === "closed") { + const isDesktop = globalThis.matchMedia("(min-width: 1024px)").matches; + if (creatureId && panelView.mode === "closed" && isDesktop) { showCreature(creatureId); } }, @@ -521,7 +522,7 @@ export function ActionBar({
diff --git a/apps/web/src/components/combatant-row.tsx b/apps/web/src/components/combatant-row.tsx index 519b31f..c627e8d 100644 --- a/apps/web/src/components/combatant-row.tsx +++ b/apps/web/src/components/combatant-row.tsx @@ -157,7 +157,7 @@ function MaxHpDisplay({ inputMode="numeric" value={draft} placeholder="Max" - className="h-7 w-[7ch] text-center text-sm tabular-nums" + className="h-7 w-[7ch] text-center tabular-nums" onChange={(e) => setDraft(e.target.value)} onBlur={commit} onKeyDown={(e) => { @@ -272,7 +272,7 @@ function AcDisplay({ inputMode="numeric" value={draft} placeholder="AC" - className="h-7 w-[6ch] text-center text-sm tabular-nums" + className="h-7 w-[6ch] text-center tabular-nums" onChange={(e) => setDraft(e.target.value)} onBlur={commit} onKeyDown={(e) => { @@ -348,7 +348,7 @@ function InitiativeDisplay({ value={draft} placeholder="--" className={cn( - "h-7 w-full text-center text-sm tabular-nums", + "h-7 w-full text-center tabular-nums", dimmed && "opacity-50", )} onChange={(e) => setDraft(e.target.value)} @@ -520,7 +520,7 @@ export function CombatantRow({ isPulsing && "animate-concentration-pulse", )} > -
+
{/* Concentration */}