Commit Graph

17 Commits

Author SHA1 Message Date
evykassirer
a37d1033ce message_header: Fix em height calculation given larger font-size.
Followup to https://github.com/zulip/zulip/pull/32933#discussion_r1910137015

Discussion here:
https://chat.zulip.org/#narrow/channel/6-frontend/topic/info.20density.20with.20em.20font.20size/near/2037799
2025-02-07 14:02:50 -08:00
evykassirer
47f21ae9c5 message_header: Center privacy icons. 2025-02-06 09:40:17 -08:00
evykassirer
39319cee34 message_header: Specify font-size and line height on content div.
This is helpful for info density, because `em` values change
depending on the font-size of the HTML element, and we want to
be able to reference `em` sizes for the placement of the message
header container when it's sticky.

This commit should have no functional changes because
`message-header-contents` is the only child of `message_header`
and doesn't itself use font size or line height.

This commit also changes the line height to unitless
https://chat.zulip.org/#narrow/channel/6-frontend/topic/navbar.20sticky.20header.20with.20em/near/2054561
2025-01-28 14:50:43 -08:00
evykassirer
7b932faf40 message_header: Use em instead of px for height and font-size. 2025-01-09 15:04:06 -08:00
evykassirer
f56f78ddb8 message_header: Remove unused recipient-row-stream-icon.
Removed in 12ac459379.
2025-01-09 15:04:06 -08:00
Sayam Samal
6557cd74cd stream_color: Replace spectrum color picker with native color picker.
This commit replaces the spectrum color picker used in the stream
popover and stream settings with a custom color picker popover, which
contains a grid of predefined color swatches and a custom color option.

The custom color option uses the HTML5 <input type="color"> which shows
the native browser color picker UI.

Fixes #14961.
2025-01-07 17:27:23 -08:00
whilstsomebody
669a341b02 message_header: Add short delay on hover.
A small delay before showing up of the action buttons
is required so that there will be no flickering when
mouse just slides over the message headers.

Fixes part of #26852.
2025-01-04 20:55:05 -08:00
whilstsomebody
cc0893f4a4 message_ui: Prevent action buttons from hiding on recipient bar focus.
Added `opacity` CSS with `:focus-within` pseudo-class to
the recipient bar. This keeps the action button visibility
consistent with the action UIs - topic editing UI and notification
menu.

Fixes part of #26852.

Co-authored by: ecxtacy <dc.dhruvchouhan@gmail.com>
2025-01-04 20:55:05 -08:00
whilstsomebody
114597178c message_ui: Show non-sticky recipient bar action buttons on hover.
- Toggles the CSS rule `opacity: 0` on the recipient bar
  controls when the bar is hovered.
- If the recipient bar is sticky, then the controls are always visible.
- In case of conversation views, the recipient actions remain visible.

Fixes part of #26852.

Co-authored by: ecxtacy <dc.dhruvchouhan@gmail.com>
2025-01-04 20:55:05 -08:00
Anders Kaseorg
cac3bca409 dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 09:54:56 -08:00
Aman Agrawal
e734694229 message_header: Fix message content visible above sticky header.
This was due to `box-shadow` used to hide the content was incorrectly
overridden in `.sticky_header` from the `.message_header` just above.

The bug is highly reproducible since it happens due to minor pixel
differences when rendering.
2024-11-11 14:19:20 -08:00
sanchi-t
fa268877d3 stream: Show (archived) at the end of deactivated stream names.
When a stream is deactivated the title area and messages are
re-rendered to update the stream name with `(archived)` suffix.
2024-10-25 16:06:42 -07:00
Karl Stolley
155fc9f1d7 link_styles: Establish variable-based generic link styles. 2024-10-15 15:04:47 -07:00
adnan-td
4bde1586e4 topic_name: Fix compressing of display topic names.
Fixes part of #30478.
2024-06-26 12:23:32 -07:00
Aman Agrawal
dd071c7303 topic_visibility: Remove deprecated topic visibility toggle classes.
These classes became slowly unused as switched to the new topic
visibility system over time.
2024-06-25 14:12:19 -07:00
Karl Stolley
6c5085b827 message_header: Bring over control hover selectors. 2024-05-03 12:34:08 -07:00
Karl Stolley
165df5f1f6 message_header: Build message_header.css from zulip.css header styles. 2024-05-02 13:38:58 -07:00