mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: improved collapsed drawer state/interactions (#29850)
- Clicking the channel title of a collapsed drawer will only open the drawer, and not open settings - Remove the back button when the drawer is collapsed - Uses same icon for toggling on chat that composer - add max-width to minimised drawer + add hover effect --------- Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
This commit is contained in:
@@ -29,13 +29,13 @@ export default class ComposerToggles extends Component {
|
||||
toggleIcon(composeState) {
|
||||
return composeState === "draft" || composeState === "saving"
|
||||
? "xmark"
|
||||
: "chevron-down";
|
||||
: "angles-down";
|
||||
}
|
||||
|
||||
@discourseComputed("composeState")
|
||||
fullscreenIcon(composeState) {
|
||||
return composeState === "draft"
|
||||
? "chevron-up"
|
||||
? "angles-up"
|
||||
: composeState === "fullscreen"
|
||||
? "discourse-compress"
|
||||
: "discourse-expand";
|
||||
|
||||
Reference in New Issue
Block a user