Commit Graph

2358 Commits

Author SHA1 Message Date
evykassirer
ddd14a3dc1 buddy_list: Use different spacing for avatar and non-avatar text.
This ensures the link and empty list "None" message text is always
aligned with the text of the user's names.
2025-03-03 17:33:48 -08:00
evykassirer
7a3aa1f920 right_sidebar: Extend sidebar links hover outline left, to full width. 2025-03-03 17:33:48 -08:00
evykassirer
c2e361caea right_sidebar: Extend user row hover outline left, to full width. 2025-03-03 17:33:48 -08:00
evykassirer
0568f9eb1b right_sidebar: Use variable for avatar right margin. 2025-03-03 17:33:48 -08:00
evykassirer
fefd64b56d avatars: Move right margin rule to only selectors where it's relevant.
It isn't being used for `inline_profile_picture` because messages are
displayed with grid.
2025-03-03 17:33:48 -08:00
Karl Stolley
313a04b4a9 thumbnails: Express dimensions in rounded ems. 2025-03-03 17:11:13 -08:00
evykassirer
f44b56a750 subscriptions/user_groups: Remove custom styling for <=500px screens.
This was causing issues with the red icon having the wrong height and
centered buttons looking weird at narrow screens.

Further discussion here:
https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AF.20UI.20issues.20in.20channel.20settings.20.28narrow.20windows.29/near/2105436
2025-03-03 17:09:48 -08:00
evykassirer
c5c5852964 typeahead: Rename header text as more accurate footer text.
This was moved to the bottom in 3e3deb2, but the naming had
not been updated.

Followup to #33584.
2025-03-03 16:43:33 -08:00
Karl Stolley
060b57470f right_sidebar: Make width easier to reason about. 2025-03-03 16:03:54 -08:00
Karl Stolley
17629c0f9c right_sidebar: Introduce the right sidebar with a narrower width. 2025-03-03 16:03:54 -08:00
Karl Stolley
e9ddd4797f app_layout: Constrain max-width when manually hiding sidebars.
Fixes: #33715.
2025-03-03 16:03:54 -08:00
Karl Stolley
1dad4dcdf7 app_layout: Calculate max-width using variablized values. 2025-03-03 16:03:54 -08:00
Karl Stolley
f8cb569678 app_main: Allow middle column to occupy hidden left sidebar space.
Fixes part of #33715.
2025-03-03 16:03:54 -08:00
Karl Stolley
f70b47878a navbar: Hide view, channel descriptions at small viewports.
This is an attempt to fix somewhat #33685. More finesse can
probably be done in the area, but hiding descriptions on a title-
by-title basis will be non-trivial.
2025-03-03 16:03:54 -08:00
Karl Stolley
e12168935e navbar: Handle offsets for manually hidden navigation.
This brings the offset behavior in line regardless of whether
"Use full width" has been selected.
2025-03-03 16:03:54 -08:00
Aman Agrawal
b60ac90714 fluid_layout: Fix narrow description not aligned with content.
Fixes #30619

We adjust the left margin of middle column to place the header middle
column next the left sidebar to fix the alignment issue.
2025-03-03 16:03:54 -08:00
Aman Agrawal
a3d591b337 css: Extract realm logo max width as a variable. 2025-03-03 16:03:54 -08:00
Maneesh Shukla
b5dec3258f personal_settings: Restyle the profile, account & privacy settings btns.
This commit restyles the profile, account and privacy settings buttons
as follows:

- "Preview profile": action-button-quiet-brand
- Pencil for email editing: icon-button-brand
- "Change your password": action-button-quiet-brand
- "Deactivate account": action-button-quiet-danger
- "Manage your API key": action-button-quiet-brand

Fixes part of #33130.
2025-03-03 12:43:59 -08:00
Sahil Batra
118eaffd3a groups: Update how we show members count in group pills.
Instead of showing count as "N users", we just show the
count in parentheses now.

Fixes #33628.
2025-03-03 10:38:10 -08:00
Aman Agrawal
bb4d77b9f5 tooltip: Remove dead code related to old tooltips system. 2025-03-02 22:59:28 -08:00
Aman Agrawal
7ae1a2c480 css: Scale scroll to bottom icon with font-size. 2025-03-02 22:59:06 -08:00
Aman Agrawal
60ff4f1375 css: Center icon using flexbox instead of position.
This will help us better center it on different font sizes.
2025-03-02 22:59:06 -08:00
evykassirer
30334e75d3 search: Scale message feed banner text with em.
This commit also changes the font-size to 1em, instead
of 16px at 14px.
2025-02-28 17:38:54 -08:00
Sayam Samal
48dae579b2 alerts: Remove --base-font-size-px and allow font-size to be inherited.
This is a follow-up commit to d1de4457dc,
which had set the font-size for the alert popups to --base-font-size-px.

This removes that line of code, as it was pointed out by Tim Abbott
that the web/styles/alerts.css file was also being shared with portico
through the web/src/bundles/common.ts bundle, but the
--base-font-size-px variable doesn't exist there.

Removing the font-size property from the alert box doesn't affect its
styling since it still inherits the `--base-font-size-px` from the body
in the Zulip Web App.
2025-02-28 09:03:00 -08:00
Sayam Samal
d1de4457dc alerts: Enable font scaling in alert banners. 2025-02-27 23:22:04 -08:00
evykassirer
ffe6e0fa35 reactions: Stop using height: fit-content for emoji picker.
This fixes a bug introduced in b2c5eed70d
and discussed here:
https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AF.20triangle.20next.20to.20emoji.20button/near/2105156
2025-02-27 15:21:04 -08:00
evykassirer
79a8b10407 modal: Scale channel email widget and email header with font size. 2025-02-27 14:40:48 -08:00
Karl Stolley
0ee4ab3601 compose: Correct alignment, ellipsis on general chat placeholder. 2025-02-27 13:30:09 -08:00
Karl Stolley
390ab9d7c5 sidebar_vdots: Scale vdots areas to maintain square target. 2025-02-27 11:37:05 -08:00
Karl Stolley
ecbcfd23d5 right_sidebar: Perfectly align all right-sidebar vdots. 2025-02-27 11:37:05 -08:00
Karl Stolley
5b28684a72 right_sidebar: Improve available space in buddy list. 2025-02-27 11:37:05 -08:00
Aman Agrawal
eaec4fca50 typeahead: Show ellipsis for overflowing primary text.
Fixes #31392
2025-02-27 09:25:59 -08:00
evykassirer
04e30ab1df typeahead: Scale header text with font size. 2025-02-27 09:23:05 -08:00
Tim Abbott
9107101fe0 popovers: Disable move-messages count due to logic errors.
Until we've fixed the bugs that display incorrect numbers, this is a
simple way to hide the component.

This will be reverted once #32892 is complete.
2025-02-26 17:29:19 -08:00
Sayam Samal
bd1ccfbf6d inline_topic_edit: Update styling for confirm and cancel buttons. 2025-02-26 17:26:35 -08:00
Sayam Samal
4c9d47c390 inline_topic_edit: Disable save button and show tooltip on empty topic.
This commit disables the save button when the topic name is considered
as empty as part of the `realm_mandatory_topics` being set to True.

Since disabled elements do not fire events, it is not possible to
trigger tippy tooltips on disabled elements – such as the Save button
in the inline topic edit UI. Thus this commit adds a tooltip to the
disabled save button by wrapping/unwrapping it inside a `span` wrapper
pragmatically via the `ui_util.disable_element_and_add_tooltip` and
`ui_util.enable_element_and_remove_tooltip` helper methods.
2025-02-26 17:26:35 -08:00
Sayam Samal
196fcd5c0a inline_topic_edit: Show invalid input error visually on empty topic.
This commit adds the `invalid-input` class to the inline topic edit
input element when the new topic name is considered empty as a result
of realm_mandatory_topics property being set to True. This adds the
red glow borders to the invalid input field, which visually
communicates that some thing is wrong with the new topic name.
2025-02-26 17:26:35 -08:00
Sayam Samal
8935abec16 inline_topic_edit: Change ID->Class since multiple instances can exist.
Since multiple inline topic edit forms can exist in a channel feed, when
multiple topic names are being edited, we change the ID to classname.
2025-02-26 17:26:35 -08:00
Sayam Samal
2723adac54 inline_topic_edit: Improve design of inline topic edit UI.
This commit improves the design of the inline topic edit UI by making
the following changes:
- Increases the dimensions of the text input element.
- Fixes the font scaling inside text input element.
- Replaces the old save and cancel buttons with the new icon buttons.

Fixes #33155.
2025-02-26 17:26:35 -08:00
Anders Kaseorg
c71aeae34d dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-26 16:20:47 -08:00
Karl Stolley
c1e86a9144 navbar: Remove realm navbar icon logo. 2025-02-26 15:52:49 -08:00
Karl Stolley
8cd87eb05e specator_view: Prevent large login button from colliding with search box. 2025-02-26 15:52:49 -08:00
Karl Stolley
51eb43b830 navbar_search: Adjust z-index to keep collpased search clickable. 2025-02-26 15:52:24 -08:00
Karl Stolley
34cd1e2c27 right_sidebar: Better handle manually hidden right sidebar.
With the larger, flexibly sized right sidebar, we want to allow
for the middle column to expand to fill its place even outside of
the "Use full width on wide screens" setting.
2025-02-26 15:52:24 -08:00
Karl Stolley
1c74b1635b viewports: Re-engineer breakpoint detection from JavaScript. 2025-02-26 15:52:24 -08:00
Karl Stolley
f27a69be71 container_queries: Add baseline container queries and fallbacks. 2025-02-26 15:52:24 -08:00
Karl Stolley
d33d09eaf3 app_layout: Establish containers for spec-aligned browsers. 2025-02-26 15:52:24 -08:00
Karl Stolley
430c4d179a container_queries: Detect spec-aligned support.
Some browsers, notably Safari on both iOS and macOS, are not yet
aligned with the CSS specification, which does not force layout
containment but does force an independent formatting context
(see https://github.com/w3c/csswg-drafts/issues/10544).

The little test here will allow us to deliver em-aware container
queries to browsers that are spec aligned, and fall back to media
queries in browsers that are lagging.
2025-02-26 15:52:24 -08:00
Karl Stolley
c2cf7ef571 right_sidebar: Set em-based min and max width, flexible column width. 2025-02-26 15:52:24 -08:00
Shubham Padia
4da8cf35bf right_sidebar: Rename to right column wherever applicable.
In our css variables, we were using sidebar and column interchangably.
But, sidebar is 10px less wider than the column. This commit makes no
behaviour change, but renames variables to use column where necessary
and uses variable for sidebar instead of a fixed 240px value.
2025-02-26 15:52:23 -08:00