fix: stabiliser largeur pages + traduire labels EXIF
- CSS: scrollbar-gutter stable pour éviter le décalage de largeur entre pages avec/sans scrollbar - EXIF: ajouter labels XResolution, YResolution, ResolutionUnit - EXIF: afficher ColorSpace 1→sRGB, 2→Adobe RGB, 65535→Non calibré - EXIF: afficher ResolutionUnit 2→pouces, 3→cm Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0bfe6336f0
commit
6ea8785038
2 changed files with 9 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
|||
}
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { overflow-y: scroll; } /* scrollbar toujours présente → pas de décalage entre pages */
|
||||
html { overflow-y: scroll; scrollbar-gutter: stable; }
|
||||
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
|
||||
main { flex: 1; }
|
||||
a { color: var(--blue); text-decoration: none; }
|
||||
|
|
|
|||
|
|
@ -72,8 +72,12 @@
|
|||
'ExposureProgram':'Programme','MeteringMode':'Mesure',
|
||||
'Orientation':'Orientation','Artist':'Auteur',
|
||||
'Copyright':'Copyright', 'ColorSpace':'Espace colorimétrique',
|
||||
'XResolution':'Résolution X','YResolution':'Résolution Y',
|
||||
'ResolutionUnit':'Unité résolution',
|
||||
'GPS':'Coordonnées GPS',
|
||||
} %}
|
||||
{% set color_spaces = {1: 'sRGB', 2: 'Adobe RGB', 65535: 'Non calibré'} %}
|
||||
{% set resolution_units = {1: 'Sans unité', 2: 'pouces', 3: 'cm'} %}
|
||||
{% for key, val in meta.exif.items() %}
|
||||
<div class="meta-item">
|
||||
<span class="meta-label">{{ labels.get(key, key) }}</span>
|
||||
|
|
@ -81,6 +85,10 @@
|
|||
{% if key == 'GPS' and val %}
|
||||
<a href="https://www.openstreetmap.org/?mlat={{ val.split(',')[0].strip() }}&mlon={{ val.split(',')[1].strip() }}&zoom=15"
|
||||
target="_blank" rel="noopener">{{ val }}</a>
|
||||
{% elif key == 'ColorSpace' %}
|
||||
{{ color_spaces.get(val | int, val) }}
|
||||
{% elif key == 'ResolutionUnit' %}
|
||||
{{ resolution_units.get(val | int, val) }}
|
||||
{% else %}
|
||||
{{ val }}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue