Client: document image viewer (DocumentImageDrawer) shows the image too small
I maintainer di solito rispondono entro 2 giorni
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- frontend
Direzione di ricerca
Start in packages/client/src/components/common/document-image-drawer.tsx, which wraps ImageMagnifier (image-magnifier.tsx) in PopUpDrawer (modals/drawer.tsx), and find where the shared drawer width (w-3/4 sm:max-w-sm) is applied. Check the four callers: documents-table/cells/preview.tsx, documents-table/cells/files.tsx, documents-table/document-actions-menu.tsx and common/forms/edit-document.tsx. Done means an opened invoice is readable on a desktop screen without the magnifier, tall scans can still be scrolled or fitted, and mobile is no worse.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The client's document image viewer, DocumentImageDrawer, is awkward to use: the document image it shows is too small to read without the hover magnifier.
Context: https://guild-oss.slack.com/archives/D01DQ8VJ8KX/p1791886282658719
Where
packages/client/src/components/common/document-image-drawer.tsxwrapsImageMagnifier(image-magnifier.tsx) inPopUpDrawer(modals/drawer.tsx).- It is used in:
documents-table/cells/preview.tsxdocuments-table/cells/files.tsxdocuments-table/document-actions-menu.tsxcommon/forms/edit-document.tsx
Likely cause
PopUpDrawer uses the shared drawer width (w-3/4 sm:max-w-sm), which caps the drawer at about 384px on desktop. The component's own comment says the old Mantine size="30%" was not carried over, so on a wide screen the drawer is now narrower than before. The image fills that narrow column, so it is hard to read without hovering over it with the magnifier.
Suggested direction
- Make the image drawer much wider on desktop (for example, roughly 50% of the viewport, or a resizable width), or let
PopUpDraweraccept a size prop so this drawer can override the house width without changing other drawers. - Make the image fit the available height and width (
object-contain) so a full page fits on screen. - Consider an "open full size" or "fit width / fit page" control, and keep the existing zoom and magnifier.
- Check the result in all four places that use the component.
Acceptance criteria
- On a typical desktop screen, an opened document (an invoice or receipt) is readable without the magnifier.
- Tall scans can still be scrolled or fitted to the page; nothing is cut off.
- Mobile layout is no worse than it is today.
- Lingua principale
- TypeScript
- Stelle
- 30
- Fork
- 9
- Merge medio
- 1g 13h
- PR unite (30g)
- 198
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Urigo/accounter-fullstack
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Urigo/accounter-fullstack#4834 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Urigo/accounter-fullstack#4604 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Urigo/accounter-fullstack#4580 ·
I maintainer di solito rispondono entro 2 giorni
-
Document PG18 migration conventions: NOT NULL NOT VALID, and generated columns default to VIRTUALAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Urigo/accounter-fullstack#4366 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Urigo/accounter-fullstack#4873 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di Urigo/accounter-fullstack
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
JuliusBrussee/caveman#1449 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
linagora/twake-calendar-frontend#1924 ·
I maintainer di solito rispondono entro 1 giorno
-
Add: Class TV ModaApertacheck:passed streams:add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
libnativeapi/nativeapi#21 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
GiganticMinecraft/seichi-playguide#183 ·
I maintainer di solito rispondono entro 1 giorno