Commit Graph

2090 Commits

Author SHA1 Message Date
Shubham Padia
f5f3f12fbb modal: Use em instead of rem for modal title.
This commit makes the modal title responsive for font-sizes 12px to
20px. For #add-poll-modal, we remove the .modal__title rule for
font-size set to 1.375em. That removal technically increases it's font
size from 1.375em to 1.5714em, but that new font size is the same as the
previous 1.375rem that was changed in
e80a23642d (r1904958062)
2025-01-09 15:32:17 -08:00
evykassirer
7b932faf40 message_header: Use em instead of px for height and font-size. 2025-01-09 15:04:06 -08:00
evykassirer
f56f78ddb8 message_header: Remove unused recipient-row-stream-icon.
Removed in 12ac459379.
2025-01-09 15:04:06 -08:00
Vishesh Singh
ba25648190 mention_pill: Fix spacing for bot icon in bot mention pill.
Added left margin to bot icon in bot mention pill.

Fixes #26831.
2025-01-09 12:28:16 -08:00
Vishesh Singh
37e0dff013 compose_pill: Show bot icon after bot name.
Show the bot icon after the name on compose pill if it
is a bot.
Align the bot to the center.

fixes part of #28561.
2025-01-09 11:58:20 -08:00
evykassirer
c9ef9fdf78 polls: Use em for modal title. 2025-01-08 16:28:48 -08:00
evykassirer
3f1966ced9 polls: Remove bottom margin to fix vertical centering. 2025-01-08 16:28:48 -08:00
evykassirer
fe3d87f15e polls: Set modal height with em. 2025-01-08 16:28:48 -08:00
whilstsomebody
f1dd8d88c9 compose: Add background and border colors for message limit.
Added colors to notify users when the message length is near
the limit or has exceeded it. Used distinct colors for each
case to provide clear feedback.

Fixes: #32171.
2025-01-07 17:57:15 -08:00
whilstsomebody
569b07477b compose: Rename over_limit to textarea-over-limit.
According to the current naming convention, underscores are used
instead of hypens in class names, and this is more globally unique for
its meaning.
2025-01-07 17:49:31 -08:00
Sayam Samal
c8de1debf8 stream_color: Remove spectrum-colorpicker library.
As a follow-up to the previous commit which replaces the spectrum color
picker instances with the custom color picker popover, this commit
removes the spectrum-colorpicker library and its related code from the
codebase.
2025-01-07 17:27:58 -08:00
Sayam Samal
6557cd74cd stream_color: Replace spectrum color picker with native color picker.
This commit replaces the spectrum color picker used in the stream
popover and stream settings with a custom color picker popover, which
contains a grid of predefined color swatches and a custom color option.

The custom color option uses the HTML5 <input type="color"> which shows
the native browser color picker UI.

Fixes #14961.
2025-01-07 17:27:23 -08:00
Harsh
c7dd259b9e styles: Remove 'old_clear_search_button' styles. 2025-01-07 17:22:47 -08:00
Harsh
8bb53d39ea Hide clear search button if search box is empty. 2025-01-07 17:22:47 -08:00
Harsh
046f4687d0 right_sidebar: Use common 'clear_search_button' for zulip-icon-close. 2025-01-07 17:22:47 -08:00
Harsh
cf15990850 status: Use 'zulip-icon-close' instead of 'fa-remove' in search box. 2025-01-07 17:22:47 -08:00
Harsh
93efaaff4c popovers: Use 'zulip-icon-close' instead of 'fa-remove' in search box. 2025-01-07 17:22:47 -08:00
Harsh
92a02c7a18 left_sidebar: Use same 'zulip-icon-close' in all search-boxes. 2025-01-07 17:22:47 -08:00
Harsh
6902d66635 recent: Use 'zulip-icon-close' instead of 'fa-remove' in search box. 2025-01-07 17:22:47 -08:00
Harsh
4bf1ce7c5e settings: Use 'zulip-icon-close' instead of 'fa-remove' in search box.
fixes #32598
2025-01-07 17:22:47 -08:00
Harsh
4b5e578b9f Rename "clear_search_button" to "old_clear_search_button".
This temporary change allows us to preserve these old styles
while iteratively move all the close buttons to new styles.
Once the migration is complete, `old_clear_search_button` won't
exist anymore and there will be new styles for `clear_search_button`.
2025-01-07 17:22:47 -08:00
Saubhagya Patel
ad766c802e settings: Use text cursor for "Name" when name changes are disabled.
This commit includes the following changes:
 - Use a regular text cursor in place of a pointer cursor for the
   "Name" field label when the name changes are disabled.
 - Introduce a class named `cursor-text` that sets the property
   `cursor: text;`.
 - Implement tests to verify the above changes made.
2025-01-07 13:44:53 -08:00
evykassirer
9fcc41d85c compose: Scale compose banner close button with info density setting. 2025-01-07 12:52:12 -08:00
Sahil Batra
bbf43a2866 stream-settings: Use new "can_send_message_group" setting. 2025-01-07 12:17:36 -08:00
evykassirer
9a4c5bc1a0 recent: Use em for recent view filter widget width. 2025-01-07 09:29:17 -08:00
evykassirer
2c351d8a23 inbox/recent: Use em for dropdown menu. 2025-01-07 09:29:17 -08:00
evykassirer
a8d0d462fb inbox: Use em for filter and search boxes. 2025-01-07 09:29:17 -08:00
evykassirer
0df487c4f3 inbox: Remove unused button-inbox-filter selector.
Removed in f191efce1b
2025-01-07 09:29:17 -08:00
evykassirer
f0e06f08ec inbox: Remove extra width on inbox table.
This was causing the table to be 2px wider than the filter box,
at all font sizes.
2025-01-07 09:29:17 -08:00
evykassirer
3ce65a3e52 inbox: Use base font size for inbox view. 2025-01-07 09:29:17 -08:00
evykassirer
d4a130d88d buddy_list: Use 0.75 opacity for the user counts.
Discussed here:
https://chat.zulip.org/#narrow/channel/101-design/topic/right.20sidebar.20heading.20dot/near/2013034
2025-01-06 12:30:46 -08:00
evykassirer
ae805763bc compose: Use an icon for the mac command hotkey hint. 2025-01-06 11:29:38 -08:00
Shubham Padia
213c9e6a7a css: Use em instead of base font size css variable for small buttons.
Clearing the pending TODO to use em instead of calc and the
`--base-font-size-px` variable.
2025-01-06 09:49:16 -08:00
Shubham Padia
01793b0de3 subscriptions: Set width for fa-pencil icon to align with others.
This icon is narrower in width, we have to explicitly set it's width
to 1em so that it vertically aligns with other buttons near it.
2025-01-06 09:48:28 -08:00
Shubham Padia
333b3904b5 user_group_settings: Use user-group-x icon for deactivate button. 2025-01-06 09:48:28 -08:00
whilstsomebody
669a341b02 message_header: Add short delay on hover.
A small delay before showing up of the action buttons
is required so that there will be no flickering when
mouse just slides over the message headers.

Fixes part of #26852.
2025-01-04 20:55:05 -08:00
whilstsomebody
cc0893f4a4 message_ui: Prevent action buttons from hiding on recipient bar focus.
Added `opacity` CSS with `:focus-within` pseudo-class to
the recipient bar. This keeps the action button visibility
consistent with the action UIs - topic editing UI and notification
menu.

Fixes part of #26852.

Co-authored by: ecxtacy <dc.dhruvchouhan@gmail.com>
2025-01-04 20:55:05 -08:00
whilstsomebody
114597178c message_ui: Show non-sticky recipient bar action buttons on hover.
- Toggles the CSS rule `opacity: 0` on the recipient bar
  controls when the bar is hovered.
- If the recipient bar is sticky, then the controls are always visible.
- In case of conversation views, the recipient actions remain visible.

Fixes part of #26852.

Co-authored by: ecxtacy <dc.dhruvchouhan@gmail.com>
2025-01-04 20:55:05 -08:00
evykassirer
ad16739a7f recent_view: Vertically align filter checkboxes with their labels. 2025-01-04 16:38:00 -08:00
evykassirer
dc2b38fae1 recent_view: Use em for padding width of checkboxes. 2025-01-04 16:38:00 -08:00
dinesh-gaire
1cb0118b17 css: Fix focus outline cutoff issue in poll title editing.
Fixes #32829.
2025-01-03 15:23:15 -08:00
Karl Stolley
99e9c747c9 profile_modal: Correctly center title contents. 2025-01-03 15:16:49 -08:00
Karl Stolley
5e8070222e modals: Style formatted time descriptions to match move modal. 2024-12-19 09:07:44 -08:00
Karl Stolley
c505e23d8c modals: Better style move-count indicator. 2024-12-19 09:07:44 -08:00
Karl Stolley
a81bb51a82 modals: Structure heading as grid to allow line wrapping. 2024-12-19 09:07:44 -08:00
Karl Stolley
42f210ee26 move_modals: Better structure and style stream/topic references. 2024-12-18 17:10:45 -08:00
Sayam Samal
7a27e0aadd user_group_popover: Fix misaligned icons in user group member list.
Previously, due the uneven width between the icons and the user
presence indicator, the icons and presence indicator were misaligned
with each other.

This commit uses the grid and subgrid layout systems to fix this
misalignment issue.
2024-12-18 17:08:34 -08:00
Sayam Samal
86c0be1cb4 buttons: Add icon-only button styles.
This commit adds the icon-only button styles to the codebase along with
appending this new button style to the storybook-style page in
`/devtools/buttons` to view and test the icon-only button component.

The redesigned icon button component, uses the `icon-button` class to
follow Zulip's no-abbreviation policy, and to avoid conflicts with the
pre-existing `button` and bootstrap `btn` classes.

A button using this new style, should use the following classes,
  - First, the base `icon-button` class which defines the structure
  and behavior of the button. (Required)
  - Second, a `icon-button-square` class, to be used in conjecture
  with the `icon-button` class which provides the style for the squared
  button style of icon button. (Optional)
  - Third, a modifier class like `icon-button-neutral` which
  defines the colors for the particular icon button type. (Required)
2024-12-18 16:59:43 -08:00
Karl Stolley
a58e4d7be6 channel_descriptions: Hyphenate long words in lieu of arbitrary breaks. 2024-12-18 13:18:14 -08:00
Karl Stolley
52968f3729 subscriptions: Correct alignment of privacy icon. 2024-12-18 12:23:28 -08:00