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:
Joffrey JAFFEUX
2024-11-25 03:39:03 +01:00
committed by GitHub
parent b607f2d4a5
commit 66409fa8b4
6 changed files with 99 additions and 42 deletions

View File

@@ -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";