Skip to content

Commit

Permalink
client: slightly improve room layout on smaller screens (#1802)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 authored Aug 31, 2024
1 parent f92b41a commit 33c9391
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 19 deletions.
51 changes: 33 additions & 18 deletions client/src/components/controls/VolumeControl.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
<template>
<vue-slider
:model-value="volume"
@update:model-value="changed"
style="width: 150px; margin-left: 10px; margin-right: 20px"
:process="
dotsPos => [
[
0,
dotsPos[0],
{
backgroundColor: 'rgb(var(--v-theme-primary))',
},
],
]
"
:drag-on-click="true"
data-cy="volume-slider"
/>
<div class="volume">
<vue-slider
:model-value="volume"
@update:model-value="changed"
:process="
dotsPos => [
[
0,
dotsPos[0],
{
backgroundColor: 'rgb(var(--v-theme-primary))',
},
],
]
"
:drag-on-click="true"
data-cy="volume-slider"
/>
</div>
</template>

<script lang="ts" setup>
Expand All @@ -33,3 +34,17 @@ function changed(value: number) {
volume.value = value;
}
</script>

<style lang="scss" scoped>
@import "../../variables.scss";
.volume {
width: 150px;
margin-left: 10px;
margin-right: 20px;
@media (max-width: $md-max) {
width: 100px;
}
}
</style>
2 changes: 1 addition & 1 deletion client/src/views/Room.vue
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ $in-video-chat-width-small: 250px;
justify-self: center;
@media (max-width: $md-max) {
max-width: 100%;
width: 100%;
}
}
}
Expand Down

0 comments on commit 33c9391

Please sign in to comment.