Skip to content

Commit

Permalink
fix(alerts): mobile styles
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmcg authored and stavares843 committed Jun 29, 2022
1 parent f169deb commit ec6c836
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 125 deletions.
17 changes: 0 additions & 17 deletions components/ui/FloatingContainer/FloatingContainer.html

This file was deleted.

30 changes: 0 additions & 30 deletions components/ui/FloatingContainer/FloatingContainer.less

This file was deleted.

63 changes: 0 additions & 63 deletions components/ui/FloatingContainer/FloatingContainer.vue

This file was deleted.

9 changes: 8 additions & 1 deletion components/views/navigation/toolbar/Toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,15 @@
@click="toggleAlerts"
v-tooltip.bottom="$t('pages.chat.alerts')"
/>
<ToolbarAlerts v-if="showAlerts" v-click-outside="toggleAlerts" />
<ToolbarAlerts
v-if="showAlerts && $device.isDesktop"
v-click-outside="toggleAlerts"
/>
</div>
<ToolbarAlerts
v-if="showAlerts && !$device.isDesktop"
v-click-outside="toggleAlerts"
/>
<div
:class="`control-button ${!enableRTC || webrtc.activeCall ? 'disabled' : ''}`"
v-tooltip.bottom="callTooltipText"
Expand Down
12 changes: 0 additions & 12 deletions components/views/navigation/toolbar/Toolbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,6 @@
&:extend(.ellipsis);
}
}

.alerts-floating-container {
&:extend(.fourth-layer);
&.side-open {
margin-right: 1.2rem;
}
}
}

@media only screen and (max-width: @mobile-breakpoint) {
Expand Down Expand Up @@ -119,11 +112,6 @@
}
}
}
.alerts-floating-container {
top: calc(@toolbar-height - @light-spacing);
right: @light-spacing !important;
left: @light-spacing !important;
}
}

/* Only for Safari to fix lack resolution of svgs */
Expand Down
11 changes: 9 additions & 2 deletions components/views/navigation/toolbar/alerts/Alerts.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
gap: @light-spacing;

top: 45px;
left: -8px;
left: 0;
max-height: 50vh;
width: 27rem;
width: 25rem;
padding: @light-spacing @xlight-spacing;
cursor: default;
overflow-y: scroll;
Expand All @@ -30,3 +30,10 @@
width: fit-content;
}
}

@media only screen and (max-width: @mobile-breakpoint) {
#alerts {
top: @toolbar-height;
width: 100%;
}
}

0 comments on commit ec6c836

Please sign in to comment.