docs: document recent image-view refactor and new view context keys
This commit is contained in:
@@ -84,6 +84,13 @@ Notes:
|
||||
- `/gallery/` -> directory browsing and image view routing
|
||||
- Preserve lazy thumbnail generation behavior unless task explicitly changes performance strategy.
|
||||
|
||||
### Recent changes notes
|
||||
|
||||
- The image view was refactored to match the gallery layout and styling; `viewer/templates/image_view.html` now uses the shared `viewer/static/css/styles.css` file and Bootstrap/Font Awesome includes like `gallery_view.html`.
|
||||
- `_render_image` in `viewer/views.py` now exposes additional context keys used by the template and tests: `prev_url`, `next_url`, `prev_thumb`, `next_thumb`, `back_url`, `back_thumb`, `home_url`, `home_thumb`, and `image_meta` (dictionary with `filename`, `width`, `height`, `filesize`, `created`, `modified`). Agents modifying image-view behavior should update tests in `viewer/test.py` as well.
|
||||
- The top-bar sort button for the image view was replaced by an Info button (`fa-circle-info`) which shows a dropdown containing image metadata. The dropdown is vertically scrollable for long content.
|
||||
- The displayed main image now uses the same drop shadow and rounded corners as thumbnails (styles added to `viewer/static/css/styles.css`).
|
||||
|
||||
## 7) Code Style Guidelines (Repository-Specific)
|
||||
|
||||
### Imports
|
||||
|
||||
Reference in New Issue
Block a user