Commit Graph

2145 Commits

Author SHA1 Message Date
Jitendra Kumar
f96484eed5 style: Center the ⌘ symbol by replacing it with an icon.
This commit updates the keyboard shortcuts UI by replacing
the ⌘ symbol with a more symmetrically aligned icon.

Fixes: #32926
2025-01-24 16:48:26 -08:00
Karl Stolley
7111d429e6 compose: Size help-button icon to match other formatting buttons.
Because button sizes are precisely specified in the area, we set
the buttons as flex items that neither to grow or shrink, which
is essential to right-size the button area for the help button.
2025-01-24 14:57:29 -08:00
Karl Stolley
1d7076a534 channel_modal: Push back against inherited icon styles. 2025-01-24 14:56:41 -08:00
Shubham Padia
82c04ebe9e stream_types: Add admin permissions note below advanced configurations.
We've also removed the label_parens_text of `in addition to organization
administrators` wherever applicable.
2025-01-23 15:57:16 -08:00
Karl Stolley
eda9b1a271 me_messages: Improve grid for me-message alignment. 2025-01-22 16:18:31 -08:00
Karl Stolley
1878758baf message_row: Prevent avatar margin from shifting grid row. 2025-01-22 16:18:31 -08:00
Karl Stolley
38c6b82022 message_row: Refine action-button layout to better scale. 2025-01-22 16:18:31 -08:00
Karl Stolley
90279af1ea action_buttons: Remove noop font-size declaration.
A 16px conversion at 16px/1em is unnecessary, and there are no
other font-size declarations in the area. So the base font-size
should be inherited as expected, allowing the button icons to
scale.
2025-01-22 16:18:31 -08:00
Shubham Padia
d79020f8e0 right_sidebar: Use em for empty list message font-size. 2025-01-22 16:15:57 -08:00
Niloth P
4fbe893431 css: Extend .markdown .zulip-icon styling outside .content. 2025-01-22 16:14:14 -08:00
Sourabh Patel
25a7d6b9ca move_topic_modal: Move .topic_move_breadcrumb_messages to popovers.css. 2025-01-22 09:31:43 -08:00
Sourabh Patel
03111ddb26 move_topic_modal: Remove nowrap to allow text wrapping.
Avoids overflow when screen_width<390px.
2025-01-22 09:31:43 -08:00
Sourabh Patel
ff031abf1e move_topic_modal: Fix dropdown shrinking too much for smaller screens.
On smaller screens it is expected that the available space is used
to display much part of the content. 100% width ensures that while
max-width ensures that the dropdown button doesn't become too wide
where there's extra space available.
2025-01-22 09:31:43 -08:00
Sourabh Patel
5fc7684beb move_topic_modal: Remove flex properties that caused overflow.
Using flex here caused overflow which was especially visible for
very long channel names(~60 characters). Even for the shorter
channel names there was slight overflow noticeable in input class
move_messages_edit_topic if left and right spacing was compared.

This commit fixes the issue by removing the flex display.
2025-01-22 09:31:43 -08:00
Shubham Padia
75b6b1d54f polls: Do not use pixel height for poll title.
Poll title was set to 18px which was leading to the title looking
smaller than the options in 20px font size. Removing that explicit
font-size declaration will make the h4 font-size fall back to 1.1em and
thus that title will scale properly to font-size changes. At 16px, the
font-size for the title was 18px initially, now it is 17.6px which
should not be that big of a change.
2025-01-21 16:22:53 -08:00
Lauryn Menard
522ca946cf templates: Use h2 elements instead of label elements on billing page.
The majority of the label elements on the billing page are not
associated with a form element and function more as section headers.

Also removes the padding/margin 25px rules for these so that the
rendered page is less fragile to cases where content could overlap,
such as when there was no text before the next expected charge h1
element.
2025-01-21 15:21:15 -08:00
Saubhagya Patel
04fa3655ec settings: Replace the Theme select dropdown with the Theme switcher.
This commit includes the following changes:
 - Replace the theme select dropdown in the Preferences
   section of the Personal settings with the theme switcher,
   similar to the one in the personal menu popover.
 - The theme select dropdown in the Default User Settings
   section of the Organization settings also follows the same
   changes.

Fixes: #32111.
2025-01-21 12:01:12 -08:00
debghs
253efe1686 left_sidebar: Fix gap between direct-messages and streams_header.
This commit fixes the gap at the top of the streams_header
by adjusting the 'top' property with a small offset.

Fixes #32849.
2025-01-21 11:58:52 -08:00
Harsh
f9617c0aff searchbox_css: Replace display: none with visibility: hidden.
This commit standardizes the use of visibility: hidden for
clear_search_buttons in search boxes.
2025-01-21 10:31:34 -08:00
Karl Stolley
d14c3b7aac left_sidebar: Present uniform, gridded filter boxes. 2025-01-21 08:56:49 -08:00
Harsh
dfedfbdfd3 css: Remove unused .bot-owner-name from styles. 2025-01-21 08:49:27 -08:00
Harsh
d5aca48cd8 css: Use --color-text-url variable as color for text links.
fixes: #31520
2025-01-21 08:49:27 -08:00
Saubhagya Patel
b013e25a64 css: Adjust focus outline for New Channel input in Move messages modal.
This commit adjusts the focus outline for the "New channel"
input in the Move message(s) and topic modal, preventing
it from extending to the entire modal and limiting it to the
input element only.
2025-01-16 11:22:31 -08:00
Sourabh Patel
aa5f2d3346 lightbox: Add query to hide media-description below 100px width.
Using container query ensures that the media-description element gets
hidden only when the container size is less tha 100px not screen size.
The change is visible for image preview in small screen as action
button takes much of space. Meanwhile in video-preview the description
is still visible as we have much space even in small screen.
2025-01-16 09:01:51 -08:00
Sourabh Patel
194a9f762c lightbox: Remove unused media query styles for cleaner CSS. 2025-01-16 09:01:51 -08:00
Sourabh Patel
bff652a565 lightbox: Update iframe styles to use aspect-ratio.
Using width 100% with a max-width improves the view for tall screen.
Dynamic max-height is just to ensure that it adjust itself for
much wider screen with very less height.
2025-01-16 09:01:51 -08:00
Sourabh Patel
0739de6fdc lightbox: Adjust line-height to avoid vertical overflow.
This nullifies the vertical overflow due to transform scaleY.
2025-01-16 09:01:51 -08:00
Sourabh Patel
ca1a25c994 lightbox: Simplify media description styles for better responsiveness.
Give media-description all the available space using flex-grow.
Setting min-width to zero helps to truncate overflowing text.
2025-01-16 09:01:51 -08:00
Sourabh Patel
51956c6806 lightbox: Refactor styles for improved layout and spacing.
Proper use of flex properties for consistent layout and spacing
while avoiding use of margin that can result in extra spacing
around first and last child.
2025-01-16 09:01:51 -08:00
Sourabh Patel
fcaa77ffba lightbox: Update styles with flexbox to avoid height calculation.
Using flex-grow ensures that component fills up the available
space without the need of calculation of height.
2025-01-16 09:01:51 -08:00
Karl Stolley
ea3cd18382 compose: Hide scrolling buttons with keyboard focus. 2025-01-14 15:52:02 -08:00
Karl Stolley
c6bdebec03 compose: Add logic for scrolling buttons. 2025-01-14 15:52:02 -08:00
Karl Stolley
8feaa5e6e8 compose: Initialize scrolling buttons only when needed. 2025-01-14 15:52:02 -08:00
Karl Stolley
a5e234f8ff compose: Size help button to match all others. 2025-01-14 15:52:02 -08:00
Karl Stolley
0d0aaa8586 compose: Introduce scrolling buttons in gridded layout. 2025-01-14 15:52:02 -08:00
Karl Stolley
cf29edaa65 compose: Flatten a popover-free formatting bar. 2025-01-14 15:52:02 -08:00
Aman Agrawal
6d495a270e billing: Fix "Payment method" wrapping to next line. 2025-01-14 09:51:06 -08:00
Aman Agrawal
05c0213cad recent_view: Prevent participant avatars from overflowing.
We update max_avatars on rerenders based on recent view width
to prevent participant avatars from overflowing their width.

We use resize event to update `--recent-view-max-avatars` which
is checked on `complete_rerender`.
2025-01-13 18:30:38 -08:00
Sayam Samal
234b94391a banners: Rename btn -> button in grid variables in app_variables.css. 2025-01-13 17:46:15 -08:00
Sayam Samal
75dabca291 showroom: Rename dev/design-testing -> showroom. 2025-01-13 17:46:15 -08:00
Sayam Samal
6c16adc9d8 showroom: Standardize "showroom" name for UI components testing pages.
This commit standardizes the naming convention to be used for the UI
components being used in the `/devtools/` storybook-like pages for
testing the UI components.
2025-01-13 17:46:15 -08:00
Sayam Samal
6dabfa02cb banners: Add new redesigned banner component.
This commit adds the redesigned banner component to the codebase along
with a storybook-style page in /devtools/banners to view and test the
redesigned banner component.

Any banner using the new redesigned styles, requires two classes,
- First, the base `banner` class which defines the structure and
    behavior of the banner.
- Second, a modifier class like `banner-info` which defines the styles
    for the particular banner type.

The navbar alert banners also have a custom class `navbar-alert-banner`
which is used to define the specific style and structure for these
banner types.

This commit also makes the `banner`, `action-button` and `icon-button`
components into handlebar templates to maintain consistency in their
usage in the codebase.
2025-01-13 17:46:13 -08:00
Sayam Samal
c406060bb2 buttons: Update color values for action buttons from hex -> hsl. 2025-01-13 17:44:52 -08:00
Sayam Samal
f2126c2d3c buttons: Fix inner shadow for quiet type action buttons.
This commit adds the missing inner shadow for the dark mode, and updates
these values to match those in the Figma design.
2025-01-13 17:44:52 -08:00
Sayam Samal
7c5199896f buttons: Update action button design.
The `line-height` and `padding` values are updated, to account for the
previous confusion of calculating these values for a 15px base value,
instead of the required 16px base font value.

The other changes in this commit include the `font-weight` and `gap`
properties, which are modified following the design discussion on CZO.
2025-01-13 17:44:52 -08:00
Sayam Samal
06ecc04d2f buttons: Add transition effect and use clip-path for scaling animation.
This commit replaces the use of `scale`, with `clip-path` for showing
the shrinking animation on the active state of action buttons. This
prevents the font and the icon from scaling with the element, which
removes the unwanted jitter during the animation.

The commit also makes necessary changes to the focus outline on the
buttons, to accommodate the use of clip-path and to improve the visuals.

This commit also adds the `transition` property to the action buttons
to smooth out the animations between the element states.
2025-01-13 17:44:50 -08:00
Karl Stolley
e7e1ddcafe left_sidebar: Prevent bleedthrough on Channels heading. 2025-01-13 14:39:38 -08:00
Harsh
658e342480 left_sidebar: Remove bottom border from 'topic_search_section'.
Some checks failed
Code scanning / CodeQL (push) Has been cancelled
Zulip production suite / Ubuntu 22.04 production build (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:bookworm, true, false, Debian 12 (Python 3.11, backend + documentation), bookworm) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:jammy, false, true, Ubuntu 22.04 (Python 3.10, backend + frontend), jammy) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:noble, false, false, Ubuntu 24.04 (Python 3.12, backend), noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm, --test-custom-db, Debian 12 production install with custom db name and user, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy, , Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble, , Ubuntu 24.04 production install, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-7.0, 7.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-8.0, 8.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy-6.0, 6.0 Version Upgrade, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-9.0, 9.0 Version Upgrade, noble) (push) Has been cancelled
This commit removes the mistakenly added bottom border from topic
search section.
2025-01-12 18:41:50 -08:00
Sayam Samal
0a0a030fca stream_color: Add confirm button to the color picker popover.
This commit adds a confirm button to the top right corner od the color
picker popover to provide a more intuitive way to exit the popover
after fiddling around with the stream color.
2025-01-12 12:39:02 -08:00
Sayam Samal
33266f7de3 buttons: Fix icon-button icon alignment on variable sizes.
This commit center aligns the icon inside the icon-button across
different button sizes. This also sets the aspect-ratio of icon
buttons to 1:1, to constraint these buttons to a square shape.
2025-01-12 12:39:02 -08:00