mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 20:12:50 +08:00
UX: composer toolbar changes (icon, style, placement) (#32918)
Changes the gear icon for the more menu to a circle-plus icon. Changes the emoji icon to its outline version, to make it less similar to the circle-plus icon. Changes the styles (eg. icon sizes) of the toolbar, using a flexbox instead of a grid, with some tweaks and animations to the toggle switch, which occupies a smaller width now. Removes the gray button-bar bottom border. Moves the Insert Date/Time item to the more menu, and changes its icon to a clock. ### Before, hovering more menu <img width="758" alt="image" src="https://github.com/user-attachments/assets/84d8f5aa-519e-40a2-ba44-d58d7294f6b0" /> ### After, hovering more menu  --------- Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
This commit is contained in:
@ -86,7 +86,8 @@ describe "Local dates", type: :system do
|
||||
it "allows selecting a date without a time and inserts into the post" do
|
||||
topic_page.visit_topic_and_open_composer(topic)
|
||||
expect(topic_page).to have_expanded_composer
|
||||
composer.click_toolbar_button("local-dates")
|
||||
find(".d-editor-button-bar .toolbar-popup-menu-options").click
|
||||
page.find(".toolbar-popup-menu-options [data-name=local-dates]").click
|
||||
expect(insert_datetime_modal).to be_open
|
||||
insert_datetime_modal.calendar_date_time_picker.select_year(year)
|
||||
insert_datetime_modal.calendar_date_time_picker.select_day(16)
|
||||
@ -99,7 +100,8 @@ describe "Local dates", type: :system do
|
||||
it "allows selecting a date with a time and inserts into the post" do
|
||||
topic_page.visit_topic_and_open_composer(topic)
|
||||
expect(topic_page).to have_expanded_composer
|
||||
composer.click_toolbar_button("local-dates")
|
||||
find(".d-editor-button-bar .toolbar-popup-menu-options").click
|
||||
page.find(".toolbar-popup-menu-options [data-name=local-dates]").click
|
||||
expect(insert_datetime_modal).to be_open
|
||||
insert_datetime_modal.calendar_date_time_picker.select_year(year)
|
||||
insert_datetime_modal.calendar_date_time_picker.select_day(16)
|
||||
@ -114,7 +116,8 @@ describe "Local dates", type: :system do
|
||||
it "allows selecting a start date and time and an end date and time" do
|
||||
topic_page.visit_topic_and_open_composer(topic)
|
||||
expect(topic_page).to have_expanded_composer
|
||||
composer.click_toolbar_button("local-dates")
|
||||
find(".d-editor-button-bar .toolbar-popup-menu-options").click
|
||||
page.find(".toolbar-popup-menu-options [data-name=local-dates]").click
|
||||
expect(insert_datetime_modal).to be_open
|
||||
insert_datetime_modal.calendar_date_time_picker.select_year(year)
|
||||
insert_datetime_modal.calendar_date_time_picker.select_day(16)
|
||||
@ -136,7 +139,8 @@ describe "Local dates", type: :system do
|
||||
|
||||
expect(topic_page).to have_expanded_composer
|
||||
|
||||
composer.click_toolbar_button("local-dates")
|
||||
find(".d-editor-button-bar .toolbar-popup-menu-options").click
|
||||
page.find(".toolbar-popup-menu-options [data-name=local-dates]").click
|
||||
|
||||
expect(insert_datetime_modal).to be_open
|
||||
|
||||
|
Reference in New Issue
Block a user