Add some nobreak spans around data in the photos EXIF table

This commit is contained in:
Eryn Wells 2023-04-08 15:17:44 -07:00
parent 7f48047610
commit 50c181f2fd

View file

@ -21,7 +21,9 @@
{{ $heightpx := .Tags.PixelYDimension }}
{{ if and (gt $widthpx 0) (gt $heightpx 0) }}
{{ $megapixels := div (mul $widthpx $heightpx) 1e6 }}
<data value="{{ $megapixels }}">{{ $megapixels | lang.FormatNumber 0 }} MP</data> • {{ $widthpx }} × {{ $heightpx }}
<span class="nobreak"><data value="{{ $megapixels }}">{{ $megapixels | lang.FormatNumber 0 }} MP</data></span>
<span class="nobreak">{{ $widthpx }} × {{ $heightpx }}</span>
{{ end }}
</td>
{{ end }}