Commit Graph

211 Commits

Author SHA1 Message Date
Vector73
b31024be47 saved_snippets: Add support for editing saved snippets.
Fixes #33708.
2025-03-13 10:58:36 -07:00
Karl Stolley
c688c2742e compose: Refine the space occupied by the channel. 2025-03-11 13:51:25 -07:00
Apoorva Pendse
54fd02b173 compose_tooltip: Remove delay for invalid messages.
Does what 714def080f
was trying to do without the side effects.
Fixes: 714def080f
2025-03-11 09:41:22 -07:00
Karl Stolley
54b0ba0248 compose: Hold DM picker, topic marker to top recipient line. 2025-03-10 13:39:47 -07:00
Karl Stolley
e2bf50f358 compose: Share 'normal' line height on recipient row. 2025-03-06 17:05:41 -08:00
Karl Stolley
7b453770d7 compose: Shore up flex properties for uniform compose buttons. 2025-03-06 17:05:41 -08:00
Karl Stolley
c509c196e5 compose: Shore up row definitions for topic box. 2025-03-06 17:05:41 -08:00
Karl Stolley
be20d8634a compose: Correct flexbox definitions for recipient row. 2025-03-06 17:05:41 -08:00
Karl Stolley
2902843ca7 compose: Remove .less-dense-mode rule.
This style was made unnecessary as of the introduction of scrolling
compose buttons.
2025-03-06 10:58:03 -08:00
Anders Kaseorg
e381dfd448 styles: Remove obsolete ‘transition: none …’ workaround.
https://github.com/kristerkari/stylelint-high-performance-animation/issues/216
was fixed upstream.

Signed-off-by: Anders Kaseorg <[email protected]>
2025-03-04 15:30:11 -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
Karl Stolley
0ee4ab3601 compose: Correct alignment, ellipsis on general chat placeholder. 2025-02-27 13:30:09 -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
evykassirer
37cf88bb87 compose: Scale send button with font size. 2025-02-24 22:33:05 -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
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
evykassirer
c9109ef736 compose: Use em for message-limit-indicator font size. 2025-02-20 11:14:49 -08:00
evykassirer
3fccbdd369 saved snippets: Use em for width, font-size, padding. 2025-02-20 10:06:55 -08:00
Anders Kaseorg
3ead4c06f0 app_variables: Rename “color” variables that are actually gradients.
Signed-off-by: Anders Kaseorg <[email protected]>
2025-02-19 11:01:48 -08:00
evykassirer
2eccb8b46e compose: Remove stale classname: compose_draft_button.
This was removed in 609106e2d0
but the CSS was still there, unused.
2025-02-18 21:55:45 -08:00
evykassirer
f72dbad5e6 compose: Fix em calculation errors.
Followup to  #33523.
2025-02-18 14:53:23 -08:00
evykassirer
c76a246a8a compose: Use em for sizing and position of stream typeahead icon. 2025-02-18 12:13:24 -08:00
evykassirer
fc3c755e1d compose: Scale close button with font size. 2025-02-14 16:39:48 -08:00
evykassirer
4482d0a009 compose: Use grid for enter sends choices to align radio buttons. 2025-02-04 10:43:51 -08:00
Vector73
32d131ab5a saved_snippet: Move "Create a new saved snippet" button to the bottom.
Renames "Add a new saved snippet" to "Create a new saved snippet" and
"Add saved snippet" tooltip to "Insert saved snippet".

Moves "Create a new saved snippet" button to the bottom sticky area of the
dropdown.
2025-01-30 09:46:32 -08:00
Karl Stolley
7111d429e6 compose: Size help-button icon to match other formatting buttons.
Because button sizes are precisely specified in the area, we set
the buttons as flex items that neither to grow or shrink, which
is essential to right-size the button area for the help button.
2025-01-24 14:57:29 -08:00
Harsh
f9617c0aff searchbox_css: Replace display: none with visibility: hidden.
This commit standardizes the use of visibility: hidden for
clear_search_buttons in search boxes.
2025-01-21 10:31:34 -08:00
Karl Stolley
ea3cd18382 compose: Hide scrolling buttons with keyboard focus. 2025-01-14 15:52:02 -08:00
Karl Stolley
c6bdebec03 compose: Add logic for scrolling buttons. 2025-01-14 15:52:02 -08:00
Karl Stolley
8feaa5e6e8 compose: Initialize scrolling buttons only when needed. 2025-01-14 15:52:02 -08:00
Karl Stolley
a5e234f8ff compose: Size help button to match all others. 2025-01-14 15:52:02 -08:00
Karl Stolley
0d0aaa8586 compose: Introduce scrolling buttons in gridded layout. 2025-01-14 15:52:02 -08:00
Karl Stolley
cf29edaa65 compose: Flatten a popover-free formatting bar. 2025-01-14 15:52:02 -08:00
whilstsomebody
f1dd8d88c9 compose: Add background and border colors for message limit.
Added colors to notify users when the message length is near
the limit or has exceeded it. Used distinct colors for each
case to provide clear feedback.

Fixes: #32171.
2025-01-07 17:57:15 -08:00
whilstsomebody
569b07477b compose: Rename over_limit to textarea-over-limit.
According to the current naming convention, underscores are used
instead of hypens in class names, and this is more globally unique for
its meaning.
2025-01-07 17:49:31 -08:00
evykassirer
9fcc41d85c compose: Scale compose banner close button with info density setting. 2025-01-07 12:52:12 -08:00
evykassirer
ae805763bc compose: Use an icon for the mac command hotkey hint. 2025-01-06 11:29:38 -08:00
Karl Stolley
e4cba81c90 app_variables: Match dark theme popover to menu. 2024-12-17 11:05:44 -08:00
Karl Stolley
f8cbff51e0 compose: Control formatting dividers with CSS. 2024-12-17 11:05:44 -08:00
Karl Stolley
b56c838688 compose: Constrain icons to square boxes. 2024-12-17 11:05:44 -08:00
Karl Stolley
c16d434c26 compose: Correct typo in em-unit conversion. 2024-12-17 11:05:44 -08:00
Karl Stolley
eed844caef
compose: Maintain circular shape for conversation arrow. 2024-12-13 09:48:41 -08:00
evykassirer
23551c7774 compose: Use em for enter send setting font size. 2024-12-12 17:51:01 -08:00
evykassirer
90c06b34c6 compose: Size stream message arrow icon with em. 2024-12-12 09:13:04 -08:00
Shubham Padia
f147e4dd4a
Group invalid inputs (#32647)
* css: Extract invalid input outline and shadow colors to variables.

We will use these colors in future for input pills and it would be
convenient to have them in a variable.

* group_setting_pill: Show outline on invalid input.

We could have manipulate the class directly from user_group_pill. But
it felt better to have `show_outline_on_invalid_input` as a param for
the input_pill prototype since we can have a consistent error state for
other pill input boxes if we want to.

* input_pill: Widget should not show as pending after pill creation.

* group_settings: Disable save changes button if pill widget is pending.

This will disable the button for group, realm and stream group settings.

* user_group_create: Don't go to next step with pending group widget.

We just show the red outline and shaking animation as an indication that
a group widget setting is pending when the user tries to go to the add
members step.

* stream_create: Don't go to next step with pending group widget.

Fixes #32113.
We just show the red outline and shaking animation as an indication that
a group widget setting is pending when the user tries to go to the add
subscribers step.
2024-12-10 16:57:48 -08:00
opmkumar
5eb51e2df6 message_edit: Add message length limit indicator in edit message UI.
Adds a message length limit indicator similar to the one in the compose box.
The tooltip message for the disabled save button now appears dynamically
based on whether the message exceeds the length limit or the editing time
has expired.

Fixes #25271.
2024-12-04 11:44:51 -08:00