From dbaefac0754110bb53c01ce4117ddce241237f88 Mon Sep 17 00:00:00 2001 From: BigBodyCobain <43977454+BigBodyCobain@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:44:06 -0700 Subject: [PATCH] Viewer: token button in the phone bar Co-Authored-By: Claude Fable 5.2 --- viewer/web/overlay/src/viewer/phone.tsx | 50 ++++++++++++++----------- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/viewer/web/overlay/src/viewer/phone.tsx b/viewer/web/overlay/src/viewer/phone.tsx index f56f08d2..d8689e70 100644 --- a/viewer/web/overlay/src/viewer/phone.tsx +++ b/viewer/web/overlay/src/viewer/phone.tsx @@ -5,14 +5,15 @@ * * The app's panels are built for a wide screen. On a phone the map takes the * whole screen and the two side columns become sheets, one at a time. - * - Upright: four buttons along the bottom; a sheet slides up over the lower + * - Upright: five buttons along the bottom; a sheet slides up over the lower * part of the map. * - On its side: the screen is wide but short, so the buttons run down the * left edge and a sheet opens beside them at full height. */ import React, { useEffect, useState } from 'react'; -import { Info, Layers, MessagesSquare, Radar } from 'lucide-react'; +import { Coins, Info, Layers, MessagesSquare, Radar } from 'lucide-react'; +import { VIEWER_TOKEN } from './config'; /** A phone held upright (narrow) or on its side (short). */ export const PHONE_QUERY = '(max-width: 820px), (max-height: 520px)'; @@ -60,26 +61,29 @@ export function PhoneNav({ onChat: () => void; onAbout: () => void; }) { - const items: { id: string; label: string; icon: React.ReactNode; active: boolean; onClick: () => void }[] = [ - { id: 'layers', label: 'Layers', icon: