Danilo Leal
e1d295a6b4
markdown: Improve table display ( #42674 )
...
Closes https://github.com/zed-industries/zed/issues/36330
Closes https://github.com/zed-industries/zed/issues/35460
This PR improves how we display markdown tables by relying on grids
rather than flexbox. Given this makes text inside each cell wrap, I
ended up removing the `table_overflow_x_scroll` method, as it was 1)
used only in the agent panel, and 2) arguably not the best approach as a
whole, because as soon as you need to scroll a table, you probably need
more elements to make it be really great.
One thing I'm slightly unsatisfied with, though, is the border
situation. I added a half pixel border to the cell so they all sum up to
1px, but there are cases where there's a tiny space between rows and I
don't quite know where that's coming from and how it happens. But I
think it's a reasonable improvement overall.
<img width="500" height="1248" alt="Screenshot 2025-11-13 at 7 05@2x"
src="https://github.com/user-attachments/assets/182b2235-efeb-4a61-ada2-98262967355d "
/>
Release Notes:
- agent: Improved table rendering in the agent panel, ensuring cell text
wraps, not going off-screen.
2025-11-13 19:36:16 -03:00
..
2025-11-12 15:13:40 +00:00
2025-11-02 18:11:21 +00:00
2025-11-07 22:27:14 +00:00
2025-11-11 01:02:13 -05:00
2025-11-13 15:09:16 +00:00
2025-11-11 15:25:27 +00:00
2025-11-10 11:11:24 -03:00
2025-11-13 19:36:16 -03:00
2025-10-20 08:35:28 -03:00
2025-10-17 18:58:14 +00:00
2025-11-13 14:37:47 +01:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-07 22:27:14 +00:00
2025-11-07 22:27:14 +00:00
2025-11-07 22:27:14 +00:00
2025-11-11 16:15:12 +00:00
2025-11-11 12:55:19 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-29 16:41:43 +01:00
2025-11-03 14:50:34 -03:00
2025-11-03 19:25:15 +00:00
2025-11-12 20:27:04 +00:00
2025-11-07 22:27:14 +00:00
2025-10-28 20:21:49 +00:00
2025-11-11 12:47:08 -03:00
2025-11-06 09:16:45 +00:00
2025-11-10 23:00:55 -07:00
2025-10-17 18:58:14 +00:00
2025-11-12 16:41:04 -08:00
2025-11-12 18:16:13 +00:00
2025-11-06 18:36:58 -05:00
2025-11-12 15:38:16 +00:00
2025-11-07 22:27:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-07 22:27:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-07 22:27:14 +00:00
2025-11-05 22:34:05 +00:00
2025-10-17 18:58:14 +00:00
2025-11-07 22:27:14 +00:00
2025-11-06 12:53:59 -05:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-31 01:53:46 +00:00
2025-11-11 16:34:25 -05:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-12 10:32:46 -08:00
2025-10-23 14:13:35 -04:00
2025-11-12 16:41:04 -08:00
2025-11-11 21:31:42 +00:00
2025-11-07 22:27:14 +00:00
2025-11-13 15:57:26 +00:00
2025-11-11 16:07:57 +00:00
2025-10-17 18:58:14 +00:00
2025-11-11 15:45:03 +02:00
2025-10-31 21:18:22 +00:00
2025-11-11 15:45:03 +02:00
2025-11-12 10:12:02 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-11 15:42:00 +02:00
2025-10-17 18:58:14 +00:00
2025-11-12 16:26:53 +00:00
2025-10-20 10:30:06 +00:00
2025-10-17 18:58:14 +00:00
2025-10-20 23:54:56 +03:00
2025-11-10 09:27:51 +00:00
2025-11-09 21:37:22 -05:00
2025-11-12 15:13:29 +01:00
2025-11-07 22:27:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-13 16:51:13 +00:00
2025-10-17 18:58:14 +00:00
2025-10-26 13:24:26 +00:00
2025-10-17 18:58:14 +00:00
2025-11-10 23:00:55 -07:00
2025-10-17 18:58:14 +00:00
2025-11-11 12:50:56 -03:00
2025-11-07 22:27:14 +00:00
2025-11-11 16:34:25 -05:00
2025-10-17 18:58:14 +00:00
2025-11-11 20:51:57 +02:00
2025-11-11 15:43:25 +02:00
2025-11-11 16:34:25 -05:00
2025-11-13 13:27:08 -07:00
2025-11-03 19:25:15 +00:00
2025-11-13 14:15:46 +00:00
2025-11-13 14:15:46 +00:00
2025-10-17 18:58:14 +00:00
2025-10-22 19:52:38 +00:00
2025-11-11 19:20:38 +02:00
2025-11-12 19:59:10 +00:00
2025-10-22 19:52:38 +00:00
2025-10-17 18:58:14 +00:00
2025-11-07 09:42:55 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-13 19:36:16 -03:00
2025-11-13 15:12:17 +01:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-12 03:23:40 +05:30
2025-11-12 15:31:20 +01:00
2025-10-17 18:58:14 +00:00
2025-11-13 09:13:54 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-12 22:03:59 -06:00
2025-10-20 17:20:09 +00:00
2025-11-11 16:10:47 +01:00
2025-11-10 14:26:01 -07:00
2025-11-13 14:15:46 +00:00
2025-10-17 18:58:14 +00:00
2025-11-07 22:27:14 +00:00
2025-11-14 01:07:22 +05:30
2025-10-17 18:58:14 +00:00
2025-11-12 15:31:20 +01:00
2025-11-12 16:37:14 +01:00
2025-10-17 18:58:14 +00:00
2025-11-13 19:13:09 +01:00
2025-11-13 14:56:40 +01:00
2025-11-12 03:23:40 +05:30
2025-11-07 22:27:14 +00:00
2025-10-29 16:27:30 +00:00
2025-11-10 07:57:50 +00:00
2025-11-10 23:00:55 -07:00
2025-10-17 18:58:14 +00:00
2025-11-10 23:00:55 -07:00
2025-11-13 14:37:47 +01:00
2025-11-13 14:56:40 +01:00
2025-11-13 19:35:45 +00:00
2025-10-17 18:58:14 +00:00
2025-11-03 19:25:15 +00:00
2025-11-13 08:11:18 +00:00
2025-10-24 07:52:51 -04:00
2025-11-03 19:25:15 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-11 10:26:40 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-12 20:27:04 +00:00
2025-10-27 10:13:26 -04:00
2025-11-07 22:27:14 +00:00
2025-11-07 22:27:14 +00:00
2025-11-12 16:38:06 +01:00
2025-10-17 18:58:14 +00:00
2025-11-11 16:34:25 -05:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-07 22:27:14 +00:00
2025-11-03 19:25:15 +00:00
2025-11-09 10:55:56 +00:00
2025-11-06 18:36:58 -05:00
2025-10-17 18:58:14 +00:00
2025-10-29 18:49:39 +01:00
2025-10-17 18:58:14 +00:00
2025-11-07 22:27:14 +00:00
2025-10-24 18:19:53 +02:00
2025-11-07 22:27:14 +00:00
2025-11-07 11:36:05 +00:00
2025-10-17 18:58:14 +00:00
2025-11-12 16:38:06 +01:00
2025-11-12 16:38:06 +01:00
2025-11-12 20:27:04 +00:00
2025-11-10 14:26:01 -07:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-10 15:09:37 +01:00
2025-10-22 19:52:38 +00:00
2025-11-07 09:42:55 +00:00
2025-11-04 14:12:05 -05:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-13 08:11:18 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-13 13:27:08 -07:00
2025-11-07 22:27:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-14 01:52:57 +05:30
2025-11-13 09:14:18 -05:00
2025-11-07 22:27:14 +00:00
2025-10-17 18:58:14 +00:00
2025-11-13 19:35:45 +00:00
2025-11-12 15:31:20 +01:00
2025-10-17 18:58:14 +00:00
2025-11-12 16:41:04 -08:00
2025-11-12 16:58:22 -05:00
2025-11-08 01:06:12 +00:00
2025-11-13 15:43:22 +00:00
2025-11-10 19:50:43 +00:00
2025-11-07 22:27:14 +00:00