Commit Graph

448 Commits

Author SHA1 Message Date
evykassirer
0e152a128f message_edit: Scale resolve topic spinner with font size.
This commit also changes the width of the spinner so that the
resolve icon and spinner take up the same width.
2025-03-10 16:43:45 -07:00
Sayam Samal
6043063d21 alerts: Fix alert popup not closing in portico.
The alerts in portico were not being closed since the class responsible
for hiding them — `home-error-bar` was defined in `web/styles/zulip.css`
which isn't being shared with portico. This commit moves this class to
`web/styles/alerts.css` which is shared with portico, and fixes the bug.
2025-03-10 11:21:11 -07:00
Sayam Samal
cd08c628ba alerts: Modify alert-box container to use flex layout.
This is prep commit for the alert banner redesign, which adds flex
layout to the alert-box container and modifies the animations logic to
work with the new layout.
2025-03-10 11:21:11 -07:00
evykassirer
d84a23f1f8 topic_edit: Scale spinner with font size. 2025-03-10 09:20:43 -07:00
Karl Stolley
d46afab036 channel_picker: Better align privacy icons with shifting line height. 2025-03-07 12:28:46 -08:00
whilstsomebody
9b0477d771 search_query: Prevent overflow of long search queries.
Previously, when searching for extremely long queries,
they would overflow beyond the screen.

This commit fixes the bug by ensuring that long
search queries do not overflow.

Fixes: #29568
2025-03-06 13:13:38 -08:00
Karl Stolley
6915ed51d5 specator_view: Avoid Search overlap with large Log in button. 2025-03-05 14:06:48 -08:00
evykassirer
7fa633faaf flatpickr: Use constant variable for font-size.
This is part of an effort to remove all pixel font sizes
from most stylesheets. We won't scale this with font size
because the flatpickr doesn't scale with font size.
2025-03-05 14:00:32 -08:00
evykassirer
bf3bf4b53a messagebox: Scale slow send spinner with info density. 2025-03-05 10:55:08 -08:00
Aman Agrawal
c0c0ca394d css: Add more space next to privacy icon in dropdowns. 2025-03-05 10:27:45 -08:00
evykassirer
255b048b34 styles: Remove stale CSS for spectator login divider.
The divider was removed in b53836d.
2025-03-04 23:08:07 -08:00
evykassirer
aae0bdfa94 stream_narrow: Scale icon in sub/unsub message with font size. 2025-03-04 15:31:26 -08:00
Karl Stolley
71dc11189a sidebars: Show overlays full-screen, in proper stacking order.
This takes effect only at narrow viewports.

Fixes: #33713
2025-03-04 10:47:57 -08:00
Sayam Samal
06abc0bcff saved_snippets: Improve saved snippets UI.
This commit improves the saved snippets UI through the following ways:
- Reduces the space between the saved snippet title and description for
  a more interconnected feel.
- Changes the delete icon from the old font-awesome icons to using the
  new icon button component.
- Adds line-clamping to the saved snippet description to display two
  lines of text instead of one, presenting the user with more context.
2025-03-04 10:36:15 -08:00
sanchi-t
dabe601015 message_feed: Notify users when skipping unsubscribed channels.
Zulip has an invariant that all unread messages must be in channels the
user is subscribed to. Therefore, in this commit, we add a feedback
widget to notify users when a channel to which they are not subscribed is
skipped while marking messages as unread in an interleaved view.

Fixes #23470.

Co-authored-by: Hemant Umre <hemantumre12@gmail.com>.
2025-03-03 17:43:57 -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
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
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
Karl Stolley
5b28684a72 right_sidebar: Improve available space in buddy list. 2025-02-27 11:37:05 -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
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
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
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
harshbansal8705
803988d206 sidebar_ui: Fix positioning of unread dot on left sidebar toggle button.
This commit fixes the inconsistent positioning of the unread dot
on the left sidebar toggle button. Instead of using fixed pixel
values, the position is now defined using a relative percentage,
ensuring consistent alignment.

The unread dot's dimensions are also expressed in ems for better
scaling and alignment at different font-sizes. And an unnecessary
(and confusing) 0 was removed from the templates.

Co-Authored-By: harshbansal8705 <harsh@harshbansal.in>
2025-02-26 13:13:51 -08:00
Aman Agrawal
6fc9762f5d left_sidebar: Change icon.
We use a different icon whose dashed line version is visible when
left sidebar is visible and solid line version is visible if
left sidebar is hidden.
2025-02-26 13:13:51 -08:00
evykassirer
47d92cf749 navbar: Remove too-wide fixed width for right portion.
This width should be set for .column-right at wider screens,
which it already is in another CSS rule, so this style was a
duplicate. The duplicate was causing issues because it was
overriding the `width:auto` that comes into play at narrower
screens when the buddy list isn't always visible. When the
header right column is too wide, it covers up the search button
and makes it not hoverable or clickable anymore. This fixes
that.
2025-02-26 10:37:11 -08:00
Tim Abbott
7f391b8530 css: Move message_length_toggle styles to message_row.css.
The main goal is to have it in the right file, but also it doesn't
need to be nested as it was.
2025-02-25 12:26:57 -08:00
Tim Abbott
e1ce78770a css: Consolidate bookend styles. 2025-02-25 12:26:57 -08:00
Karl Stolley
0ce20fb515 sidebars: Refactor to remove .default-sidebar-behaviour.
Despite the comment in `ui_init.js`, this class is never in fact
removed, and appears only to add unnecessary complexity to certain
selectors, which are here cleaned up.
2025-02-20 11:17:02 -08:00
Maneesh Shukla
a98135649f deactivated_user: Show deactivated status for deactivated users.
Fixes: #26833.
2025-02-18 22:20:05 -08:00