File name missing in the viewer header on public share pages, menu breaks
メンテナーはふだん 8 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
src/views/Viewer.vueから始めます。ここではモーダルのタイトルがcurrentFile.basenameにバインドされています。公開共有ページからファイルを開いたときに、currentFileがどのように設定されるかを追ってください。同じファイルをFilesアプリから開く場合と比較してください。完了条件は、公開共有ビューアでファイル名が中央に表示され、ヘッダーボタンが右側に配置されたままになることです。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When a file is opened in the viewer from a public share page, the header shows no file name. Without the title, the remaining header buttons (… and close) move to the left edge instead of the right. Opening the same file from the Files app shows the name and the buttons on the right as expected.
It happens for any file type, e.g. a PNG or KM (mind map) opened with the viewer's own image handler, so it doesn't depend on the app providing the handler.
To Reproduce
- Upload an image, e.g.
picture.png, and create a public link share for it - Open the share link in a private window
- The image opens in the viewer
- See the header: no file name, and
…and the close button sit on the left
Expected behavior
The header shows the file name centered and the buttons on the right, as it does in the Files app.
Screenshots
https://github.com/user-attachments/assets/550381fc-0ea0-4e5e-8d2f-10cbff577cb0
Desktop (please complete the following information):
- OS: Windows 11
- Browser: latest Chrome and Firefox (both affected)
- Version: Nextcloud 32.0.15 with viewer 5.0.0, and Nextcloud 35.0.2 with viewer 8.0.0
Smartphone (please complete the following information):
- Not tested
Browser log
No errors related to the viewer.
Additional context
The modal gets its title from :name="currentFile.basename" in src/views/Viewer.vue, which seems to be empty for files opened on a public share page. NcModal then renders no title, and the header's justify-content: space-between moves the actions to the left.
- 主要言語
- 言語のデータがありません
- スター
- 122
- フォーク
- 75
- 平均マージ
- 8日 13時間
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/viewer のほかの issue
-
[Bug] Closing a file preview calls a missing Files Sidebar method再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン3. to review bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 8 日以内に返信
-
[Bug]: Image editor silently writes PNG data into .JPG files (uppercase extension breaks canvas.toBlob MIME)再び着手できるかも @aniruddh18122006-cyber が 14 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nextcloud/viewer#3424 · コメント 3 件 ·
メンテナーはふだん 8 日以内に返信
-
3. to review
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 8 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
nextcloud/viewer#3196 · コメント 2 件 ·
メンテナーはふだん 8 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
メンテナーはふだん 8 日以内に返信
nextcloud/viewer の issue をすべて見る
似ている issue
-
frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
uoftblueprint/canada-basketball#79 ·
メンテナーはふだん 1 日以内に返信
-
[Feature Request] Update the DimCode agent icon to the 45:32 brand mark対応中かも @eric8810 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue web
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
Accessibility Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信