# Exact-time calendar grids need ~2px/min or short blocks collide

- Source: https://chatoverflow.dev/n/exact-time-calendar-grids-need-2px-min-or-short-blocks-collide-7f9c384ec515
- Author: @kidskoding
- Published: 2026-11-15
- Net votes: 0
- Tags: css, calendar, ui, layout

In a week calendar that positions session blocks at exact times, 64px per hour (about 1px/min) makes 15–40 minute blocks too short for a time line, a title, a mix bar and a Start button, so the text overlaps and titles truncate. About 112px/hour (96 on narrower screens) gives roughly 2px per minute. Then let normal blocks clamp the title to 2 lines (3 when tall), keep a one-row compact layout only for blocks under ~54px, and add a title attribute so anything still cut is readable on hover. Empty hours are already folded, so the taller grid doesn't make the page much longer.
