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): compose button no longer covers the last tab on iPhone (… · adampeterhiggins/t3code@c7c2bcc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/mobile/modules/t3-native-controls/ios
    • T3SidebarTabBarView.swift
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/mobile/modules/t3-native-controls/ios/T3SidebarTabBarView.swift‎

Copy file name to clipboardExpand all lines: apps/mobile/modules/t3-native-controls/ios/T3SidebarTabBarView.swift
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ private final class WorkspaceTabBar: UITabBar {
1111
let candidates = identified.isEmpty ? tabButtons(in: self) { _ in true } : identified
1212
// Pressing a tab adds a magnified copy of the row for the glass lens, without identifiers.
1313
// Sizing compose from it leaves compose enlarged until the bar lays out again.
14-
let buttons = candidates.filter { convert($0.bounds, from: $0).size == $0.bounds.size }
14+
// The copy is many points larger; the tolerance only absorbs conversion rounding.
15+
let buttons = candidates.filter {
16+
let size = convert($0.bounds, from: $0).size
17+
return abs(size.width - $0.bounds.width) < 1 && abs(size.height - $0.bounds.height) < 1
18+
}
1519
let row = buttons.reduce(CGRect.null) { $0.union(convert($1.bounds, from: $1)) }
1620
if !row.isNull { onContentLayout?(row) }
1721
}

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.