Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#3,442 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 8 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

Inizia da src/views/Viewer.vue, dove il titolo della finestra modale è associato a currentFile.basename, e segui come viene popolato currentFile quando si apre un file da una pagina di condivisione pubblica. Confronta il caso con l’apertura dello stesso file dall’app Files. Il lavoro è completato quando il visualizzatore delle condivisioni pubbliche mostra il nome del file centrato e mantiene i pulsanti dell’intestazione sulla destra.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Nessun dato sulla lingua
Stelle
122
Fork
75
Merge medio
9g 5h
PR unite (30g)
22

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/viewer

Tutte le issue di nextcloud/viewer

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.