Commit Graph

98 Commits

Author SHA1 Message Date
Sahil Batra
e3fb292fb1 settings: Fix input field overflowing in channel and group edit UI.
Name input for stream and group edit modal was too wide in narrow
width screens and overflowed the modal. This commit adds CSS to
make sure that maximum width of input field is set to fit inside
the modal respecting the modal container paddings on narrow width
screens.

Fixes #35301.
2025-09-30 11:26:25 -07:00
Sayam Samal
f724ad7a33 dark_theme: Clean up read receipts modal styles.
Fixes part of #35880.
2025-09-09 09:21:16 -07:00
Anders Kaseorg
72e762f075 stylelint: Fix property-no-deprecated.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-08-14 21:37:50 -07:00
Rakshit
1a9d8acd40 settings: Use monospace font for displaying API key.
Previously, the API key was shown using a variable-width font, making
characters harder to distinguish. This change applies a monospace font to
improve readability and visual consistency.

Fixes #35189.

Co-authored-by: rxkshit04 <rakshitatwork@gmail.com>
Co-authored-by: cpu-ram <petr.stepanenko@gmail.com>
2025-08-13 14:14:04 -07:00
Sayam Samal
6f6e3b9f48 user_status: Improve selectable default user status options styling.
This commit improves the styling of the default user status options in
the status picker modal by adding hover, focus and active state styles
similar to that of the popover menu options.

Fixes #35005.
2025-08-11 11:54:18 -07:00
Saubhagya Patel
acc889ae9b css: Fix channel privacy icon gap in first stream created modal.
In the first stream created modal, a channel privacy icon
is displayed alongside the channel name. At different font sizes,
the gap between the icon and the channel name was inconsistent.
This commit fixes the above issue.
2025-07-06 16:06:42 -07:00
Sayam Samal
49332fb528 modals: Use relative em units for padding to scale UI with font size.
This commit modifies the modal styles to use relative `em` units for
padding instead of fixed pixel values, allowing the modal to scale
better with different font sizes.
2025-07-03 12:00:33 -07:00
Sayam Samal
22c913cc9e modals: Set modal content font size and line height to user set values.
This commit sets the font size and line height of modal content to match
the user's base font size and line height settings and updates the modal
title font size accordingly.
2025-07-03 12:00:33 -07:00
Maneesh Shukla
3b874c3dfa modals: Convert schedule message modal to popover.
Fixes: #35003
2025-07-02 10:34:47 -07:00
PieterCK
5f12e47ba7 app_variable: Refactor a settings-nested-checkbox-vertical-margin.
This refactors a CSS variable for checkbox field margin for checkboxes
nested in another field. For example, the "integration events" options
in the "Generate integration URL" modal. Those nested checkboxes are
spaced out closer together.

This is a prep commit for #34524, that PR will add another nested
checkbox in the "Add a new bot" modal.
2025-07-01 13:25:00 -07:00
Pratik Chanda
51819459e9 modal: Fix delete button focus outline cutoff in todo/poll widget.
This commit adds a padding so that the focus outline is visible
completely without being cutoff.

Fixes:zulip#32950.
2025-06-30 11:28:30 -07:00
Pratik Chanda
146dcbc33a modal: Fix simplebar overlap with content in todo/poll widget modal.
This commit fixes the overlap of simplebar with content in widget
modal by adding a padding for the simplebar-content.

Fixes part of zulip#32950.
2025-06-30 11:28:30 -07:00
Karl Stolley
9e2ffe7fd5 inputs: Set default text-color explicitly.
This removes the previous slightly-lighter text shade
in light mode, and gets away from the trickiness of
`color: inherit` in dark mode.

While we could probably go with inheritance
everywhere, simply by removing the color: value on
these element, setting an explicit color variable on
the inputs here builds better confidence as to what
the color value will ultimately be.
2025-06-13 16:53:46 -07:00
Maneesh Shukla
c41a96a954 trash-icon: Replace remaining fa-trash icons with zulip-icon-trash and update buttons.
Fixes: #34378.
2025-06-08 17:12:27 -07:00
Karl Stolley
3671a6a39c decorated_channels: Rename privacy-icon class. 2025-04-22 11:26:12 -07:00
Karl Stolley
59bc431243 dark_theme: Clean up modal close button colors. 2025-04-04 14:04:52 -07:00
Karl Stolley
8f2681b05a dark_theme: Clean up .modal__footer border color. 2025-04-04 14:04:52 -07:00
Sayam Samal
0e7a5c1774 user_profile_modal: Use icon button component for modal header buttons.
This commit updates the modal header buttons to use the icon button
component.

Fixes part of #33027.
2025-04-03 17:35:05 -07:00
Sahil Batra
aa02eb1eba stream: Modify warning shown when archiving announcement stream.
This commit updates how we show the text mentioning that archiving
a stream which is used for new user, new channel or update
announcements will result in the announcements not being sent.

Fixes #33379.
2025-03-17 11:02:55 -07:00
Aman Agrawal
959981d2c9 navigation_tour: Set color of "Let's go" as per standard action btn. 2025-03-13 14:38:16 -07:00
Aman Agrawal
d1704deb52 onboarding_steps: Dim background of navigation tour video. 2025-03-13 14:38:16 -07:00
Prakhar Pratyush
5f3896710f onboarding_steps: Add 'navigation_tour_video' for new users.
This commit adds a one-time modal to display navigation tour
video to new users.

Includes an `NAVIGATION_TOUR_VIDEO_URL` server-setting to specify
the video's URL. When set to None, the modal is not displayed.

Fixes #29304.
2025-03-13 14:38:16 -07:00
Maneesh Shukla
acabface1a domains_modal: Fix width of modal_text_input. 2025-03-11 12:20:36 -07:00
evykassirer
9b7f37d106 introduce_zulip_view_modal: Scale button with font size. 2025-03-04 17:53:50 -08:00
Karl Stolley
e7eae0aa30 modals: Prevent possible native horizontal scrollbar. 2025-03-04 08:57:23 -08:00
evykassirer
79a8b10407 modal: Scale channel email widget and email header with font size. 2025-02-27 14:40:48 -08:00
opmkumar
2e19d0c025 todo_modal: Remove side scrolling in the todo modal. 2025-02-18 14:53:48 -08:00
opmkumar
1e99745023 todo_list: Add option for modal to create todo-lists.
A button has been introduced to launch a modal
for creating todo-lists directly from the compose box.

The modal features a form that, upon submission,
generates a message using the `/todo` syntax and the data
inputted in the form. Subsequently, the content of the compose box
is set to this message, which the user can then send.

This modal closely parallels the UI for adding a poll; therefore,
the poll and todo code has been shifted to a newly created
file named `widget_modal.ts`, and `poll_modal.ts` is now deprecated.

Co-authored-by: Sujal Shah <sujalshah28092004@gmail.com>

Fixes #29779.
2025-02-14 14:57:24 -08:00
evykassirer
d6256017e2 modal: Use consistent padding around select instead of fixed height.
This vertical padding matches other input and dropdowns in
modals, and scales better than just "30px" as we add support
for more font sizes.
2025-02-13 16:09:04 -08:00
evykassirer
c872bea5e8 modals: Use consistent width for input and dropdown elements. 2025-02-13 16:09:04 -08:00
evykassirer
2af6f6a0d5 dropdown: Move general rule for width to app_components.css. 2025-02-13 16:09:04 -08:00
Aman Agrawal
18dfe8f071 modal: Use em for size units.
This will help us scale it with our custom font-size.
2025-02-13 15:49:19 -08:00
Aman Agrawal
a32bd73523 modal: Move modal specific css to modal.css. 2025-02-13 15:49:19 -08:00
evykassirer
066c517500 modal: Scale width with app font size.
This will become more important with larger font sizes,
which we're adding soon. The max-width will prevent the
width from becoming too wide.
2025-02-13 15:49:19 -08:00
evykassirer
500e0f63d6 read reciepts: Use em for row height and modal width. 2025-02-06 10:35:35 -08:00
evykassirer
678106b1f3 user_profile: Use em to scale height of name heading with font size. 2025-02-01 18:54:29 -08:00
Maneesh Shukla
fd2b8b5e25 modal: Center modal spinner.
This commit adds the align-items property to the modal__spinner class.
This property sets the spinner in the modal to the center without
changing the spinner's position.
2025-01-30 10:31:40 -08:00
Karl Stolley
1d7076a534 channel_modal: Push back against inherited icon styles. 2025-01-24 14:56:41 -08:00
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
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
Karl Stolley
5e8070222e modals: Style formatted time descriptions to match move modal. 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
Karl Stolley
de3aa9e8dd user_circles: Introduce icons into layout-corrected user modal. 2024-12-13 14:33:24 -08:00
joseph
f1da8a9151 settings: Fix labels using full width of the modal.
Currently, the labels are using the full width of the modal, which results
in a clickable area that is too large. This commit fixes the issue by
setting the width of the labels to just fit its content.
2024-11-19 18:37:02 -08:00
Sayam Samal
cf672ad939 modal: Rename modal__btn -> modal__button.
This commit is a part of the efforts to rename btn-related classes
and variables to align with Zulip's no-abbreviations policy and
streamline the search results.
2024-11-14 12:03:36 -08:00
Anders Kaseorg
f023fa6fc0 styles: Be specific about which properties are transitioned.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-10-23 14:56:39 -07:00
Karl Stolley
e11cfd7ba8 modal_button: Use negative outline-offset to compensate for scaling. 2024-07-30 11:27:19 -07:00