Fix members btn not visible in small devices

This commit is contained in:
Ajay Bura 2022-04-24 16:47:24 +05:30
parent 53f1129242
commit 87f3afd8fd
5 changed files with 12 additions and 3 deletions

View file

@ -1,6 +1,7 @@
@use '../../atoms/scroll/scrollbar'; @use '../../atoms/scroll/scrollbar';
@use '../../partials/text'; @use '../../partials/text';
@use '../../partials/dir'; @use '../../partials/dir';
@use '../../partials/screen';
.message, .message,
.ph-msg { .ph-msg {
@ -95,7 +96,7 @@
.message__reactions { .message__reactions {
max-width: calc(100% - 88px); max-width: calc(100% - 88px);
min-width: 0; min-width: 0;
@media (max-width: 1124px) { @include screen.smallerThan(tabletBreakpoint) {
max-width: 100%; max-width: 100%;
} }
} }

View file

@ -95,6 +95,7 @@ function RoomViewHeader({ roomId }) {
</button> </button>
<IconButton onClick={() => toggleRoomSettings(tabText.SEARCH)} tooltip="Search" src={SearchIC} /> <IconButton onClick={() => toggleRoomSettings(tabText.SEARCH)} tooltip="Search" src={SearchIC} />
<IconButton className="room-header__drawer-btn" onClick={togglePeopleDrawer} tooltip="People" src={UserIC} /> <IconButton className="room-header__drawer-btn" onClick={togglePeopleDrawer} tooltip="People" src={UserIC} />
<IconButton className="room-header__members-btn" onClick={() => toggleRoomSettings(tabText.MEMBERS)} tooltip="Members" src={UserIC} />
<IconButton <IconButton
onClick={openRoomOptions} onClick={openRoomOptions}
tooltip="Options" tooltip="Options"

View file

@ -32,6 +32,11 @@
display: none; display: none;
} }
} }
.room-header__members-btn {
@include screen.biggerThan(tabletBreakpoint) {
display: none;
}
}
.room-header__back-btn { .room-header__back-btn {
@include dir.side(margin, 0, var(--sp-tight)); @include dir.side(margin, 0, var(--sp-tight));

View file

@ -1,5 +1,5 @@
$breakpoint-tablet: 900px; $breakpoint-tablet: 1124px;
$breakpoint-mobile: 750px; $breakpoint-mobile: 750px;
@mixin smallerThan($deviceBreakpoint) { @mixin smallerThan($deviceBreakpoint) {

View file

@ -1,3 +1,5 @@
@use './app/partials/screen';
:root { :root {
/* background color | --bg-[background type]: value */ /* background color | --bg-[background type]: value */
@ -179,7 +181,7 @@
--popup-window-drawer-width: 280px; --popup-window-drawer-width: 280px;
@media (max-width: 1124px) { @include screen.smallerThan(tabletBreakpoint) {
--navigation-drawer-width: calc(240px + var(--border-width)); --navigation-drawer-width: calc(240px + var(--border-width));
--people-drawer-width: calc(256px - var(--border-width)); --people-drawer-width: calc(256px - var(--border-width));
--popup-window-drawer-width: 240px; --popup-window-drawer-width: 240px;