---
title: "comark-ui: screenshots in a table"
---

Write `![alt](shot.png)` in a table cell. This is new, so there is no before. [Open the live page](https://drop.vitehub.dev/d/jydahvr86t7g/screenshots-in-a-table) to click through it: it is the Markdown below, rendered by the pull request's branch.

```md
| App term | Engine term | Meaning | Where it shows |
| --- | --- | --- | --- |
| Dashboard | `overview` | The first page after sign-in. | ![Office correlations dashboard](/dashboard.png){width=1440 height=860 link="https://comark-ui.onmax.me/zoom"} |
| Filter bar | `query.filters` | Narrows every card. | ![Filter toolbar wrapping](/before.png){width=1280 height=500} ![Filter toolbar on one row](/after.png){width=1280 height=500} |
```

## An image in a cell is a thumbnail, so a row stays a few lines high.

::screenshot{src="https://drop.vitehub.dev/f/ca9a1cd1-268d-4691-a36e-ae6822ec5bc3.png" alt="A glossary table with a small screenshot in the last column of every row" viewport="1280x800"}
:::annotation{x=62.4 y=26.3 w=8.8 h=8.4 mark="none" side="top" at=80 to="66.8,26.6"}
64px high at most, 128px wide at most, in the file's ratio.
:::

:::annotation{x=62.4 y=38 w=10.4 h=13.2 mark="bracket"}
Two images in one cell sit together.
:::

Twelve rows at 1280px wide, light. Every image has its `width` and `height`, so the rows have their height before any image loads, and images below the screen load when the reader gets near.
::

## A click, Enter, or Space opens it at the size of its file.

::screenshot{src="https://drop.vitehub.dev/f/2f8eb769-5d58-4b6f-b0f3-38c2e30236b1.png" alt="The dashboard screenshot zoomed to fill the window, with its title and a link in the header" viewport="1280x800"}
:::annotation{x=17.5 y=1.6 w=11.6 h=2.4 mark="box"}
`link` names the page the image shows. The zoomed view links to it, and the click on the thumbnail still zooms.
:::

The first row's image, zoomed, dark. Escape or a click outside closes it and returns focus to the thumbnail.
::

## On a phone the table stacks, and the thumbnail keeps its size.

::compare
:::screenshot{src="https://drop.vitehub.dev/f/841986e5-81a2-4b65-8562-dce4d8baa2ad.png" alt="The same table at phone width, each row stacked, with its thumbnail under the text" viewport="390x780" title="Table"}
The table at 390px wide, dark.
:::

:::screenshot{src="https://drop.vitehub.dev/f/181b0396-5543-4f48-a7c3-a48a9e8c3057.png" alt="The dashboard screenshot zoomed to the phone's width" viewport="390x780" title="Zoomed"}
After a tap on the first thumbnail, light.
:::
::
