Commit Graph

26 Commits

Author SHA1 Message Date
apoorvapendse
ab01079f40 message_header: Improve text selection.
Fixes: #34959.
2025-08-12 17:40:00 -07:00
Sayam Samal
e091e19031 message_header: Update topic visibility button to use icon button.
This commit is part of a series of commits aimed at updating the message
header buttons to use the new icon button component which has consistent
styling across the Web UI and offers a larger clickable area for the
users.

Due to deviation from the structure at
"web/templates/components/icon_button.hbs", this commit applies the
icon button classes directly on the template rather than using the
component partial directly in code.

Fixes #34477.
2025-07-08 10:05:51 -07:00
Sayam Samal
fbfc724285 message_header: Update external link button to use icon button styles.
This commit is part of a series of commits aimed at updating the message
header buttons to use the new icon button component which has consistent
styling across the Web UI and offers a larger clickable area for the
users.

In this particular commit, the code doesn't directly use the
`icon_button` component but instead uses the icon button utility
classes to style the `a` tag`. The reason behind this choice is that we
want to keep the browser support associated with the `a` tag intact,
such as previewing the URL link when hovering over it.

This commit also replaces the legacy font awesome external square link
icon to the newer "external-link" icon from the Zulip font icons.

Fixes part of #34477.
2025-07-08 10:05:51 -07:00
Sayam Samal
03e3fc1402 message_header: Update legacy resolve topic button to use icon button.
This commit is part of a series of commits aimed at updating the message
header buttons to use the new icon button component which has consistent
styling across the Web UI and offers a larger clickable area for the
users.

This commit also replaces the legacy font awesome check icon to the
newer "check" icon from the Zulip font icons.

Fixes part of #34477.
2025-07-08 10:05:51 -07:00
Sayam Samal
2db994038f message_header: Update legacy unresolve topic button to use icon button.
This commit is part of a series of commits aimed at updating the message
header buttons to use the new icon button component which has consistent
styling across the Web UI and offers a larger clickable area for the
users.

This commit also replaces the legacy font awesome check icon to the
newer "check-x" icon from the Zulip font icons.

Fixes part of #34477.
2025-07-08 10:05:51 -07:00
Sayam Samal
9591d05bd7 message_header: Update legacy edit topic button to use icon button.
This commit is part of a series of commits aimed at updating the message
header buttons to use the new icon button component which has consistent
styling across the Web UI and offers a larger clickable area for the
users.

This commit also replaces the legacy font awesome pencil icon to the
newer "edit" icon from the Zulip font icons.

Fixes part of #34477.
2025-07-08 10:05:51 -07:00
kash2104
daf7f855cc dm_headers: Show bot icon after bot name.
Fixes #32990.
2025-04-05 07:24:41 -07: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
Prakhar Pratyush
7cfe3b7828 message_list_view: Remove always_visible_topic_edit.
We no longer have "(no topic)" placeholder for empty string topic,
so there's no need to push for configuring a topic.
2025-02-20 10:09:41 -08:00
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