Limit cell height to three lines in play.html#102154
Limit cell height to three lines in play.html#102154alexey-milovidov merged 34 commits intomasterfrom
Conversation
Shadow DOM does not inherit `box-sizing: border-box` from the outer document. When `_changeTableLayout` reads `offsetWidth` (which includes content + padding + border) and sets it as `style.width`, the default `content-box` model interprets that as content-only width, adding padding and border on top. This makes every column wider, shifting the table to the right. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Wrap table cell content in a `div.cell-content` with `max-height: 3lh`. Overflow is hidden but scrollable on hover (with hidden scrollbar). When a cell is selected, the div expands absolutely on top of the table with inverted colors, max height 50vh, and vertical scroll. Table layout is frozen (column widths and row heights) after rendering to prevent reflow during cell navigation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Workflow [PR], commit [cacb00d] Summary: ✅ AI ReviewSummaryThis PR updates ClickHouse Rules
Final Verdict
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Clicking on table headers, row numbers, page background, or other non-data areas now deactivates the selected cell. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use overflow: auto on both axes instead of pre-wrap, so text layout is identical to the non-selected state and UUIDs or other content do not wrap unexpectedly due to scrollbar width. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use min-width: 100% with width: fit-content so the div can grow slightly wider to accommodate the scrollbar without forcing content to wrap that did not wrap before. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This reverts commit 412cb9b.
Replace width: 100% with left: 0; right: 0 to stretch the div, avoiding sub-pixel width differences that caused UUIDs to wrap at hyphens when switching from pre to pre-wrap. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This reverts commit 7298b6d.
With border-collapse: collapse, the td's containing block is slightly narrower than the normal-flow content area due to shared borders. Using box-sizing: content-box makes width: 100% refer to the content area alone (padding added outside), so the content area is at least as wide as in normal flow, preventing unwanted wrapping at hyphens. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use border-box with calc(100% + 2px) to add exactly the 1px collapsed border on each side, instead of content-box which added the full padding outside. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
A copy icon appears at the top-right of the selected cell. Clicking it copies the cell's text content to the clipboard. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Avoids being hidden behind the sticky table header. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Only move the button to the side for the first row when a thead is present (non-transposed). In transposed tables (no thead), the button stays at the top since there is no sticky header. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
In the transposed (vertical) table format, type hints appear next to row headers without the upward translation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…bytes test The test `03634_autopr_output_bytes_estimation` failed with `MEMORY_LIMIT_EXCEEDED` on ASan because the randomized setting `query_plan_max_limit_for_lazy_materialization` was set to 1, effectively disabling lazy materialization for queries with `LIMIT > 1`. Without lazy materialization, query_23 (`SELECT * FROM test.hits ... LIMIT 10`) reads all ~100 columns for all matching rows at once, exceeding the ~4.66 GiB memory limit under ASan. Pin the setting to its default (10000) alongside the already-pinned `query_plan_optimize_lazy_materialization`. https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=102154&sha=fa1d138855cd3214b416bb0d254029055ede6462&name_0=PR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%2C%202%2F2%29 #102154 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The flaky test failure in |
|
The |



Wrap table cell content in a
div.cell-contentwithmax-height: 3lhto limit cell height to three lines. Overflow is hidden but scrollable on hover with a hidden scrollbar.When a cell is selected, the div expands absolutely on top of the table with inverted colors (
filter: invert(1)), capped atmax-height: 50vhwith vertical scroll. The outline stays on thetdso it is not inverted. Row hover and selection brightness filters exclude the active cell.Table layout (column widths and row heights) is frozen after rendering via
_changeTableLayoutto prevent reflow during cell navigation.Add a copy button to the active cell.
Fix markup for the type hints in the vertical table format.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Limit cell height to three lines in the Web UI (
play.html), with expandable cells on click.Queries to check:
SELECT * FROM "default"."github_events" WHERE created_at >= today() - 10 AND body ILIKE '%ClickHouse%' ORDER BY created_at DESC LIMIT 100SELECT check_start_time, pull_request_number, check_name, test_name, report_url, test_context_raw FROM "default"."checks" WHERE test_context_raw LIKE '%Uninitialized value%' ORDER BY check_start_time DESC LIMIT 100