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): keep the partial file warning below the iPad navigation … · patroza/t3code@8213d1d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/mobile/src/features/files
    • AttachmentDocumentBody.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/mobile/src/features/files/AttachmentDocumentBody.tsx‎

Copy file name to clipboardExpand all lines: apps/mobile/src/features/files/AttachmentDocumentBody.tsx
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useGT } from "gt-react-native";
33
import { View } from "react-native";
44

55
import { EmptyState } from "../../components/ui/EmptyState";
6+
import { useContentTopInset } from "../../components/ui/useBarInset";
67
import type { useAttachmentDocument } from "../../lib/attachmentDocument";
78
import { HtmlRenderWebView } from "../threads/HtmlRenderWebView";
89
import { AudioFilePreview } from "./AudioFilePreview";
@@ -41,6 +42,7 @@ export function AttachmentDocumentBody(props: {
4142
}) {
4243
const { document } = props;
4344
const gt = useGT();
45+
const headerInset = useContentTopInset();
4446
if (document.error) {
4547
return (
4648
<View className="flex-1 items-center justify-center bg-sheet px-6">
@@ -63,7 +65,7 @@ export function AttachmentDocumentBody(props: {
6365
if (document.needsText && document.content) {
6466
const { content, table } = document;
6567
return (
66-
<View className="flex-1 bg-sheet">
68+
<View className="flex-1 bg-sheet" style={{ paddingTop: content.truncated ? headerInset : 0 }}>
6769
{content.truncated ? (
6870
<FilePreviewNotice title={gt("Partial file")}>
6971
{gt("Preview limited to the first 1 MB. Save or share the file to read it in full.")}

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.