Repository navigation
Library: equal size chat cards and no loading placeholders - #12221
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The Windows frontend failure is from this change rather than the runner: |
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…#12221) * Library: equal size chat cards, drop loading placeholders * Library: size grid rows to the tallest card instead of clipping --------- Co-authored-by: Maheswar Kumar <[email protected]>
Summary
Cards in the Library Chats grid now all have the same width and height, and the grey placeholder rows that flashed on open are gone.
Changes
CardGridtakes anequalRowsprop that setsgrid-auto-rows: 1fr, so every row is as tall as the tallest card. The chats, projects and sections grids use it. Before, a two-line name or an extra project/section line made one row taller than the others, so card sizes varied.aspect-[8/7]andself-stretch, with nooverflow-hidden, so nothing is clipped. The 8:7 ratio is the minimum height, and a card only grows past it when its content needs the room, in which case the whole grid grows with it.self-stretchinstead ofmin-h-40/min-h-44, so they match the cards next to them.LoadingRowsskeleton. While chats and projects load, the area stays empty until the real content arrives, instead of briefly showing eight list-shaped grey bars (also in grid view).An earlier revision of this PR locked the cards to 8:7 with
overflow-hidden, which clipped the footer on Small and Medium card sizes when a card had a long name and a location line. This version replaces that.Grouped views (by date) size each group separately, so a group containing a long name can have slightly taller cards than another group.
Testing
tsc -bpasses.tests/library-chats.test.tspasses, including the existing check that cards stretch and do not clip.