Skip to content

Commit

Permalink
Fix context menu being hidden on mobile
Browse files Browse the repository at this point in the history
As well as back button not visible on 750px width
  • Loading branch information
aceArt-GmbH committed Dec 22, 2023
1 parent 2a1bf4a commit ce4bbdc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/organisms/navigation/Selector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function Selector({
const openOptions = (e) => {
e.preventDefault();
openReusableContextMenu(
'right',
window.innerWidth <= 750 ? 'bottom' : 'right',
getEventCords(e, '.room-selector'),
room.isSpaceRoom()
? (closeMenu) => <SpaceOptions roomId={roomId} afterOptionSelect={closeMenu} />
Expand Down
4 changes: 2 additions & 2 deletions src/app/organisms/room/RoomViewHeader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
}
}
.room-header__members-btn {
@include screen.biggerThan(tabletBreakpoint) {
@include screen.biggerEqualsThan(tabletBreakpoint) {
display: none;
}
}

.room-header__back-btn {
@include dir.side(margin, 0, var(--sp-tight));

@include screen.biggerThan(mobileBreakpoint) {
@include screen.biggerEqualsThan(mobileBreakpoint) {
display: none;
}
}
6 changes: 3 additions & 3 deletions src/app/partials/_screen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ $breakpoint-mobile: 750px;
}
}

@mixin biggerThan($deviceBreakpoint) {
@mixin biggerEqualsThan($deviceBreakpoint) {
@if $deviceBreakpoint==mobileBreakpoint {
@media screen and (min-width: $breakpoint-mobile) {
@media screen and (min-width: ($breakpoint-mobile + 1)) {
@content;
}
} @else if $deviceBreakpoint==tabletBreakpoint {
@media screen and (min-width: $breakpoint-tablet) {
@media screen and (min-width: ($breakpoint-tablet + 1)) {
@content;
}
}
Expand Down

0 comments on commit ce4bbdc

Please sign in to comment.