ZIm/crates/ui/src/components
Marshall Bowers f658af5903
Make border methods always require an explicit width (#11450)
This PR makes the `border` methods require an explicit width instead of
defaulting to 1px.

This breaks convention with Tailwind, but it makes GPUI more consistent
with itself. We already have an edge case where the parameterized method
had to be named `border_width`, since `border` was taken up by an alias
for the 1px variant.

### Before

```rs
div()
    .border()
    .border_t()
    .border_r()
    .border_b()
    .border_l()
    .border_width(px(7.))
```

### After

```rs
div()
    .border_1()
    .border_t_1()
    .border_r_1()
    .border_b_1()
    .border_l_1()
    .border(px(7.))
```

Release Notes:

- N/A
2024-05-06 13:22:47 -04:00
..
avatar Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
button Add wiring for UI density (#11260) 2024-05-01 14:28:52 -04:00
checkbox Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
label new path picker (#11015) 2024-04-26 13:25:25 -06:00
list Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
stories Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
title_bar Remove extra space right of traffic lights on macOS (#11176) 2024-04-29 16:43:21 -04:00
avatar.rs Add dedicated indicator for showing a muted call participant (#4076) 2024-01-16 16:18:06 -05:00
button.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
checkbox.rs Add CheckboxWithLabel component (#7881) 2024-02-15 21:00:30 -05:00
collapsible_container.rs Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
context_menu.rs Add Editor Controls Menu to Tool Bar (#10655) 2024-04-16 18:03:54 -04:00
disclosure.rs Make clicking ListHeader labels toggle the disclosure (#4140) 2024-01-18 18:21:53 -05:00
divider.rs Clean up references in doc comments in ui and theme crates (#3985) 2024-01-09 15:22:36 -05:00
icon.rs Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
indicator.rs Clean up Indicator (#11275) 2024-05-01 18:10:35 -04:00
keybinding.rs Break typography styles out of StyledExt (#11013) 2024-04-25 17:42:53 -04:00
label.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
list.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00
modal.rs remote projects per user (#10594) 2024-04-23 15:33:09 -06:00
popover.rs Finish documenting the action, asset, color, and element modules in GPUI 2024-01-20 20:15:23 -08:00
popover_menu.rs Incorporate ElementId as part of the Element::id trait method and expose GlobalId (#11101) 2024-04-28 13:59:21 -06:00
right_click_menu.rs Incorporate ElementId as part of the Element::id trait method and expose GlobalId (#11101) 2024-04-28 13:59:21 -06:00
stack.rs Rename h_stack and v_stack to h_flex and v_flex, respectively (#4053) 2024-01-15 11:34:06 -05:00
stories.rs ui: Refine TitleBar component (#9415) 2024-03-15 15:48:07 -04:00
tab.rs Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
tab_bar.rs Make border methods always require an explicit width (#11450) 2024-05-06 13:22:47 -04:00
title_bar.rs ui: Refine TitleBar component (#9415) 2024-03-15 15:48:07 -04:00
tooltip.rs Break typography styles out of StyledExt (#11013) 2024-04-25 17:42:53 -04:00