Commit Graph

467 Commits

Author SHA1 Message Date
Sayam Samal
93fb84bc98 message_row: Remove tag-level filtering in the bookends CSS.
This commit reduces the selector scope and improves the CSS matching
performance by avoiding tag-level filtering in the bookends CSS.

This also removes the `.sub-unsub-message` class from the bookend as it
served no additional support and the `.bookend`` class can be used
directly instead to maintain the styling of this element.
2025-04-16 10:44:51 -07:00
Jitendra Kumar
8682db5573 message_feed UI: Update logo dimensions for better scalability.
Change 'z' logo dimensions so that it scales according to chosen font
size.

Fix: #34266
2025-04-11 17:02:08 -07:00
Anders Kaseorg
819504a0e9 stylelint: Fix color-function-alias-notation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-04-09 15:46:56 -07:00
Karl Stolley
31d3eba256 bootstrap: Preserve useful styles on button, input. 2025-04-03 13:35:06 -07:00
Karl Stolley
a9fa087f60 bootstrap: Rescue cursor definitions on label, button. 2025-04-03 13:35:06 -07:00
Anders Kaseorg
f2a171a881 Revert "css: Remove unused transition property."
This reverts commit 7d08f32ebb.

The commit message is factually incorrect, and the change broke our
fade-out transitions.  visibility can be transitioned, and there is a
specific rule for what that means.  This is critical for transitioning
opacity in the fade-out direction: if you fail to also transition
visibility, then the element disappears immediately regardless of
opacity.

https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#interpolation

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-04-03 10:59:08 -07:00
Aman Agrawal
7d08f32ebb css: Remove unused transition property.
`visibility` cannot be animated since it is a boolean.

This fixes composition failure error in Chrome dev tools when
these animations are triggered that the animation has
no visible change.
2025-04-03 10:44:33 -07:00
Anushrut pandit
889c9a0a94 dropdown_container: Fix dropdown list focus outline clipping
Adjust the focus style for dropdown list items in inbox and recent-view.This ensures the focus outline is fully visible
across different zoom levels and fixes #34020
2025-03-17 14:07:33 -07:00
Karl Stolley
61f5bd6a4c spectator_view: Improve righthand alignment of standalone search icon.
Fixes: #34007
2025-03-17 13:54:39 -07:00
Vector73
9c5535f447 saved_snippets: Use intent="neutral" for edit icon. 2025-03-17 11:03:25 -07:00
evykassirer
6e36c6de16 channel_picker: Align icon by keeping constant line-height.
Fixes issue reported here:
https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AF.20channel.20picker.20icon.20alignment/near/2122798
2025-03-14 17:20:45 -07:00
Sayam Samal
955ddc011f inline_topic_edit: Make inline topic edit input field width dynamic.
This commit adds a hidden `topic_value_mirror` span element, and uses
that to dynamically set the width of the input field to the width of
the topic text inside it + some cushion.

Fixes #33844.
2025-03-13 15:58:26 -07:00
Prakhar Pratyush
280fd40892 inline_topic_edit: Improve placeholder when topic is not mandatory.
Earlier, we used to show "general chat" as the placeholder.

This commit adds support to show "Enter a topic (skip for general
chat)" as the placeholder when topic is not mandatory in the
inline topic edit input box.

We show "general chat" (as we show in compose topic input box)
when inline topic edit input box is not focused and topic="".

Fixes part of #33846.
2025-03-13 11:30:58 -07:00
Vector73
b31024be47 saved_snippets: Add support for editing saved snippets.
Fixes #33708.
2025-03-13 10:58:36 -07:00
Tim Abbott
2c31de0a86 compose: Remove baseline override for recipient picker.
After testing the previous commit a bit more, it appears to me that
the typo fix on `first-baseline` that I made was in error; what looks
good and matches the screenshots in the PR was having that line of CSS
be invalid/deleted.
2025-03-12 23:22:06 -07:00
Karl Stolley
e713bcb1db compose: Better align widget icons for long channel names. 2025-03-12 23:15:50 -07:00
Karl Stolley
57ebcc67bc compose: Isolate flex-align to recipient widget. 2025-03-12 23:13:24 -07:00
whilstsomebody
865d847492 dropdown_widget: Fix dropdown highlighting in inbox/conversations menu.
Previously, the dropdown had a bug where the first item
was highlighted regardless of the selected option.

This commit fixes the bug, ensuring that the
selected option is now correctly highlighted.

Fixes: #33066
2025-03-11 12:11:50 -07:00
Harsh
48e8250e28 invite: Fix alignment of copy-invite-link button in invitation modal.
This commit makes width of multiuse_invite_link to full so
that it can take all the remaining space and copy invite link
button can be aligned properly.
- this also does changes copy_invite_link to render_copy_invite_link
to follow the naming conventions.
2025-03-11 10:15:01 -07:00
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