---
title: comark-zoom on a phone with a long caption
---

An image with a long `alt` text, zoomed at 390×700 in Chromium. Same page, same click; only the zoom's styles differ.

::compare{title="Zoomed image on a phone, main and this branch"}
:::screenshot{src="https://drop.vitehub.dev/f/1a72967f-04a7-42a4-ac7e-686b4bc4c203.png" alt="On main the caption runs past the right edge and the close button is off screen" viewport="390x700" title="main"}
::::annotation{x=3 y=1.5 w=96 h=4.5 color="red"}
The caption stays on one line, so the grid's column grows to its width and the close button ends up past the screen's edge.
::::
:::

:::screenshot{src="https://drop.vitehub.dev/f/f355e515-8b33-4d39-8e26-dbfd87c9e205.png" alt="On this branch the caption ends in an ellipsis and the close button shows" viewport="390x700" title="This branch"}
::::annotation{x=91 y=1 w=7.5 h=5 mark="check" color="green"}
The column is the screen's width: the caption ends in an ellipsis and the close button is back.
::::
:::
::
