GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mobile): center floating status actions · pingdotgg/t3code@1cfaed6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/mobile/src/features/threads
    • floating-working-control.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/mobile/src/features/threads/floating-working-control.tsx‎

Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/floating-working-control.tsx
+18-14Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,20 +196,24 @@ export function FloatingWorkingControl(props: {
196196
<View className="flex-row items-center">
197197
{statusContent}
198198
{action !== null ? (
199-
<Pressable
200-
accessibilityRole="button"
201-
accessibilityLabel={action.accessibilityLabel}
202-
accessibilityState={{ disabled: action.disabled }}
203-
disabled={action.disabled}
204-
onPress={action.onPress}
199+
<View
205200
onLayout={(event) => setActionWidth(settleWidth(event.nativeEvent.layout.width))}
206-
className={`h-11 flex-row items-center gap-1.5 px-3 active:opacity-70 ${action.disabled ? "opacity-50" : ""}`}
201+
className="h-11 flex-row items-center"
207202
>
208-
<View className="mr-1 h-4 w-px bg-border" />
209-
<Text className="font-t3-medium text-xs text-foreground" numberOfLines={1}>
210-
{action.label}
211-
</Text>
212-
</Pressable>
203+
<View className="h-4 w-px bg-border" />
204+
<Pressable
205+
accessibilityRole="button"
206+
accessibilityLabel={action.accessibilityLabel}
207+
accessibilityState={{ disabled: action.disabled }}
208+
disabled={action.disabled}
209+
onPress={action.onPress}
210+
className={`h-11 items-center justify-center px-3 active:opacity-70 ${action.disabled ? "opacity-50" : ""}`}
211+
>
212+
<Text className="font-t3-medium text-xs text-foreground" numberOfLines={1}>
213+
{action.label}
214+
</Text>
215+
</Pressable>
216+
</View>
213217
) : null}
214218
{hasPreview ? (
215219
<View
@@ -234,7 +238,7 @@ export function FloatingWorkingControl(props: {
234238
onLayout={(event) => setAgentsWidth(settleWidth(event.nativeEvent.layout.width))}
235239
className="h-11 flex-row items-center gap-1.5 px-3 active:opacity-70"
236240
>
237-
{hasStatus || hasPreview ? <View className="mr-1 h-4 w-px bg-border" /> : null}
241+
{hasStatus || hasPreview ? <View className="absolute left-0 h-4 w-px bg-border" /> : null}
238242
<SymbolView name="person.2" size={13} tintColorClassName="accent-foreground-muted" />
239243
<Text className="font-t3-medium text-xs tabular-nums" numberOfLines={1}>
240244
{agents.label}
@@ -252,7 +256,7 @@ export function FloatingWorkingControl(props: {
252256
className="h-11 flex-row items-center gap-2 px-3 active:opacity-70"
253257
>
254258
{hasStatus || hasPreview || hasAgents ? (
255-
<View className="mr-1 h-4 w-px bg-border" />
259+
<View className="absolute left-0 h-4 w-px bg-border" />
256260
) : null}
257261
<SymbolView name="list.number" size={13} tintColorClassName="accent-foreground-muted" />
258262
<Text className="shrink font-t3-medium text-xs tabular-nums" numberOfLines={1}>

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.