Skip to content

Commit

Permalink
tried new icon for fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratiyushkumar committed Oct 27, 2023
1 parent 2be1d34 commit 9bf06aa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion app/components/live-panel.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
@class='icon-button--md icon__sidebar__toggle'
@title='toggle sidebar panel'
@onClick={{@sidebarDisplayToggle}}
@icon='material-symbols:chevron-right'
@icon={{if
@isExpanded
'material-symbols:fullscreen-exit'
'material-symbols:fullscreen'
}}
/>
{{#if (eq @role this.ROLES.host)}}
<Reusables::IconButton
Expand Down
2 changes: 1 addition & 1 deletion app/components/live-sidebar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
data-test-sidebar
class='sidebar
{{if this.isSideBarOpen "open" "close"}}
{{if @isExpanded "sidebarCloses" "sidebarOpens"}}'
{{if @isExpanded "sidebar--closes" "sidebar--opens"}}'
>

<div
Expand Down
4 changes: 2 additions & 2 deletions app/styles/live-sidebar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
box-sizing: border-box;
}

.sidebarOpens {
.sidebar--opens {
width: 90%;
}

.sidebarCloses {
.sidebar--closes {
width: 0%;
}

Expand Down
1 change: 1 addition & 0 deletions app/templates/live.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
@buttonClickHandler={{this.buttonClickHandler}}
@openRoomCodeModal={{this.toggleRoomCodeModal}}
@sidebarDisplayToggle={{this.sidebarDisplayToggle}}
@isExpanded={{this.isExpanded}}
/>
{{/if}}
</div>
Expand Down

0 comments on commit 9bf06aa

Please sign in to comment.