Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

File name missing in the viewer header on public share pages, menu breaks

オープン 初心者向け
#3,442 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

src/views/Viewer.vueから始めます。ここではモーダルのタイトルがcurrentFile.basenameにバインドされています。公開共有ページからファイルを開いたときに、currentFileがどのように設定されるかを追ってください。同じファイルをFilesアプリから開く場合と比較してください。完了条件は、公開共有ビューアでファイル名が中央に表示され、ヘッダーボタンが右側に配置されたままになることです。

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

説明

0. Needs triage bug

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

  1. Upload an image, e.g. picture.png, and create a public link share for it
  2. Open the share link in a private window
  3. The image opens in the viewer
  4. 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

環境構築

はじめの一歩

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

nextcloud/viewer のほかの issue

nextcloud/viewer の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

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

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