Commit Graph

2315 Commits

Author SHA1 Message Date
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
Prakhar Pratyush
087abb4314 composebox: Show 'Enter a topic (skip for general chat)' placeholder.
Use a more instructive placeholder instead of "Topic" when
topic is not mandatory in a realm.

Updated placeholder:
'Enter a topic (skip for general chat)'.
2025-02-26 14:03:24 -08:00
Karl Stolley
562bfd5671 compose: Handle topic-box focus and blur. 2025-02-26 13:59:03 -08:00
Karl Stolley
1bc53831c7 compose: Conditionally render placeholder for general chat. 2025-02-26 13:59:02 -08:00
Karl Stolley
81b6879464 compose: Match topic input text color to channel. 2025-02-26 13:59:02 -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
Karl Stolley
f212f78331 help_center: Update presentation of user circles. 2025-02-26 13:12:32 -08:00
Saubhagya Patel
23ad52f867 css: Remove margin-top from move messages count if empty.
This commit makes sure that the top margin is unset
from the move messages count paragraph if it is
empty, fixing the layout in the move topic modal.
2025-02-26 12:37:29 -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
evykassirer
b5dc33be89 search: Fix bug where icon wasn't displaying on narrow screens. 2025-02-26 10:37:11 -08:00
userAdityaa
d9589eba2c banner: Aligned the username icon for topic header.
This commit fixes the alignment of the user emoji
in the topic header. Previously, the icon in the
user's name was slightly cut off at the top. This
issue was resolved by setting the line height to 19px.
2025-02-25 15:54:47 -08:00
evykassirer
e903c018ec user_status: Convert margin to padding for taller hover highlight. 2025-02-25 15:54:14 -08:00
evykassirer
1899ac9766 user_status: Scale emoji with user's font-size. 2025-02-25 15:54:14 -08:00
Karl Stolley
1f8b2b9046 stars: Placehold container width in local echo. 2025-02-25 15:53:26 -08:00
evykassirer
23bbaf0578 user_profile: Override default width of input, to avoid overflow. 2025-02-25 14:09:47 -08:00
evykassirer
c1c321fd34 settings: Scale zulip icons with font size. 2025-02-25 13:16:07 -08:00
evykassirer
63fe461bb4 subscriptions: Align header icon with flex.
This will help with keeping the icon centered when we update
it to change size with font-size settings.

This CSS technically also applies to user groups but I don't
think there are any icons used there.
2025-02-25 13:16:07 -08:00
evykassirer
77c4de0cb2 settings: Remove dead CSS for globe icon.
Any globe icon that matches this rule gets font-size
from .large-icon .zulip-icon above, so this font-size
is never used.
2025-02-25 13:16:07 -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
Aman Agrawal
f5dfc43ce9 bookend: Only show links on the last bookend.
Fixes #33060.
2025-02-25 12:26:57 -08:00
evykassirer
37cf88bb87 compose: Scale send button with font size. 2025-02-24 22:33:05 -08:00
Aman Agrawal
606bb778c5 typeahead: Wrap topic name in topic edit recipient bar form.
Fixes #33288
2025-02-24 21:55:13 -08:00
Aman Agrawal
1556dd8fb9 typeahead: Fix stream description not aligned with stream name. 2025-02-24 21:55:13 -08:00
Aman Agrawal
290ecba48c compose: Fix topic input box not visible for long stream names.
Since we want the width of the stream name to change responsively,
we need to use either media breakpoints or `vw` to ensure
that the stream name and topic name are visible at all widths.
2025-02-24 21:55:13 -08:00
Karl Stolley
d7ac4aa651 user_circles: Show deactivated icon in sidebars, inbox, recents. 2025-02-24 18:18:16 -08:00
Karl Stolley
7cdcf72c9a user_circles: Better fit and position circles over avatars. 2025-02-24 18:18:16 -08:00
Karl Stolley
bd94e3a932 user_circles: Improve gradients in light mode and over avatars. 2025-02-24 18:18:16 -08:00
Karl Stolley
205917f9d0 user_circles: Experiment with horizontal gradient on idle circles. 2025-02-24 18:18:16 -08:00
Karl Stolley
331870afeb user_circles: Reduce size to spec in sidebars. 2025-02-24 18:18:16 -08:00
Karl Stolley
28d785c133 user_circles: Introduce Vlad's new color schemes. 2025-02-24 18:18:16 -08:00
Saubhagya Patel
99f3de5855 css: Fix CSS of Notification triggers table in Default user settings.
This commit applies CSS styles to the Notification triggers table in
the Default user settings under Organization settings, similar to how
they are applied to the Notification triggers table in the Notification
settings under Personal settings.
2025-02-24 10:17:48 -08:00
Apoorva Pendse
b547dcd643 compose_banner: Flash only once for exceeded length.
https://chat.zulip.org/#narrow/channel/101-design/topic/invalid.20message.20border.20flashing/near/2094736
2025-02-23 23:11:18 -08:00
apoorvapendse
4b82e08b13 compose: Disable send button with a default cursor.
This commit is a pre commit to a change that will
introduce banners and tooltips as per various
unmet conditions while composing a message.

To accomodate future changes, the toggling is
switched to conditional addition/removal of the
`disabled-message-send-controls` class while
updating the status of the send button.

Also a default cursor is added and the send
area tooltips are disabled whenever the
`disabled-message-send-controls` class is
present.
2025-02-23 23:11:18 -08:00
Maneesh Shukla
3db2104fe9 drafts: Add a copy draft button.
This adds a button to the draft overlay that allows the user to copy
the draft to the clipboard.
2025-02-23 15:54:07 -08:00
Aman Agrawal
94fd268abe inbox: Fix width of inbox search input at different window sizes. 2025-02-23 15:03:55 -08:00
Maneesh Shukla
e8d47ff550 styles: Modify users table spinner css to scale properly with font size. 2025-02-23 10:53:04 -08:00
Maneesh Shukla
b7ce31135d deactivated_user: Correctly display deactivated users in the right sidebar.
Fixes: #30797.
2025-02-21 18:01:26 -08:00
evykassirer
cc60fed749 stream_settings: Fix height of right pane for two-row header. 2025-02-21 10:12:19 -08:00
Maneesh Shukla
15f0aa5acd loading_spinner: Add loading spinner to settings page.
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
Remove "Loading..." text from settings page and replace it
with a spinner.
2025-02-20 17:58:49 -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
evykassirer
c9109ef736 compose: Use em for message-limit-indicator font size. 2025-02-20 11:14:49 -08:00
Karl Stolley
509a71a666 message_row: Mock available icons to prevent post-echo reflow. 2025-02-20 10:26:36 -08:00