ios: content clipped — Server Details overflows sideways, Media sheet cuts the first row

オープン
#67,054 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
ios
領域
frontend, mobile

調査の方向性

Start with the iOS Server Details and Media sheet implementations, and run the app on an iPhone-sized simulator to reproduce both layouts. Inspect the server content container’s width constraints and safe-area handling, then inspect the media list’s top inset relative to the segmented control. Done means all server cards, banner text, and action buttons stay within the screen, and the first media row or section header is fully visible on every tab.

索引モデルが issue の本文から書いたものです。

説明

area/mobile platform/ios platform/windows type/bug version/v2
Description

Two screens in the iOS app clip their content instead of fitting the display. They look like the same class of layout bug (a content container/inset that is not constrained to the screen), so I'm reporting them together.

1. Server Details overflows sideways

The screen lays its content out wider than the phone. The navigation bar ("Server Details") is centered correctly; everything below it is clipped on both sides:

  • The connection banner is cut on both edges: the title starts mid-word ("…o couldn't connect") and the detail line ends mid-word ("…Is the computer able to acc"), so the error text can't be read.
  • The rounded action buttons at the right edge of the first card (the outlined "B…" button and the blue phone-icon button) are half off-screen.
  • The two cards below are clipped symmetrically: the left card runs off the left edge and the "Skills 24" card runs off the right edge.

Measured from the screenshot (725 px ≈ 428 pt on this device): the content behaves like a ~500 pt-wide canvas centered on the screen — cards ~228 pt wide with a ~12 pt gap, ~36 pt clipped on each side.

2. Media sheet clips the first row

In the attachment picker (Media / Files / Links), the list starts too high, so the first item is partially hidden under the segmented control:

  • Media tab: the "THIS MONTH" section header is cut in half.
  • Files tab: the top of opencode-diagnostics.txt and its icon are cut.
  • Links tab: the top of "Choose" and its icon are cut.

The sheet header (grabber, title, close button) and the segmented control are correct; only the scrollable list is clipped, as if it is missing a top inset.

Expected behavior

Both screens fit the device: banner text wraps/truncates, cards and buttons stay inside the safe area, and the Media list starts below the segmented control with the first row fully visible.

Actual behavior

Server Details is laid out for a ~500 pt-wide canvas on a 428 pt-wide screen and clipped ~36 pt on each side. The Media sheet clips the top of the first row/section header on all three tabs.

Additional context

The app is connected while these screens are shown (server data loads), so this is a layout problem, not a connection state. App diagnostics export available on request.

Plugins

None

OpenCode version

iOS app 0.1.0 (build 735); server OpenCode 2.4.2 on Windows 11

Steps to reproduce

Server Details

  1. Open the app (0.1.0, build 735) on an iPhone 12 Pro Max, iOS 27.0.
  2. Connect to an OpenCode 2.4.2 server.
  3. Open the server's Server Details screen.
  4. The banner, buttons, and cards extend past both edges of the screen.

Media sheet

  1. Open the attachment/media picker.
  2. Check the first item on the Media, Files, and Links tabs.
  3. The first row/section header is clipped at the top on every tab.
Screenshot
server-details-ui session-img-4 session-img-2 session-img-3
Operating System

iOS 27.0 (24A437), iPhone 12 Pro Max (iPhone13,4)

Terminal

N/A — iOS app

主要言語
TypeScript
スター
230k
フォーク
31.3k
平均マージ
5時間 32分
マージ済み PR(30日)
453

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。