tidely
7bdc99abc1
Fix clippy::redundant_clone
lint violations ( #36558 )
...
This removes around 900 unnecessary clones, ranging from cloning a few
ints all the way to large data structures and images.
A lot of these were fixed using `cargo clippy --fix --workspace
--all-targets`, however it often breaks other lints and needs to be run
again. This was then followed up with some manual fixing.
I understand this is a large diff, but all the changes are pretty
trivial. Rust is doing some heavy lifting here for us. Once I get it up
to speed with main, I'd appreciate this getting merged rather sooner
than later.
Release Notes:
- N/A
2025-08-20 12:20:13 +02:00
Danilo Leal
1070de47ec
component preview: Add separators between sections in sidebar ( #34701 )
...
Small improvement for navigating inside the component preview.
Release Notes:
- N/A
2025-07-18 10:24:57 -03:00
Danilo Leal
59d524427e
ui: Add Chip component ( #34521 )
...
Possibly the simplest component in our set, but a nice one to have so we
can standardize how it looks across the app.
Release Notes:
- N/A
2025-07-16 01:15:45 -03:00
Jason Lee
f34a7abf17
gpui: Add shadow_xs
, shadow_2xs
and fix shadow values to match Tailwind CSS ( #33361 )
...
Release Notes:
- N/A
---
https://tailwindcss.com/docs/box-shadow
| name | value |
| -- | -- |
| shadow-2xs | box-shadow: var(--shadow-2xs); /* 0 1px rgb(0 0 0 / 0.05)
*/ |
| shadow-xs | box-shadow: var(--shadow-xs); /* 0 1px 2px 0 rgb(0 0 0 /
0.05) */ |
| shadow-sm | box-shadow: var(--shadow-sm); /* 0 1px 3px 0 rgb(0 0 0 /
0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1) */ |
| shadow-md | box-shadow: var(--shadow-md); /* 0 4px 6px -1px rgb(0 0 0
/ 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) */ |
| shadow-lg | box-shadow: var(--shadow-lg); /* 0 10px 15px -3px rgb(0 0
0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) */ |
| shadow-xl | box-shadow: var(--shadow-xl); /* 0 20px 25px -5px rgb(0 0
0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) */ |
| shadow-2xl | box-shadow: var(--shadow-2xl); /* 0 25px 50px -12px rgb(0
0 0 / 0.25) */ |
## Before
<img width="1112" alt="SCR-20250625-nnxn"
src="https://github.com/user-attachments/assets/3bd44938-5de8-4d67-b323-c444b023a4b6 "
/>
## After
<img width="1112" alt="SCR-20250625-nnrt"
src="https://github.com/user-attachments/assets/a5bf2401-f808-4712-9cc6-299f530f9165 "
/>
2025-07-03 09:50:26 -03:00
Nate Butler
c5d8407df4
component: Component crate cleanup ( #29967 )
...
This PR further organizes and documents the component crate. It:
- Simplifies the component registry
- Gives access to `ComponentMetadata` sooner
- Enables lookup by id in preview extension implementations
(`ComponentId` -> `ComponentMetadata`)
- Should slightly improve the performance of ComponentPreview
It also brings component statuses to the Component trait:



Release Notes:
- N/A
2025-05-06 03:41:52 +00:00