Skip to content

Commit 2fa0490

Browse files
committed
fix(compressor): handle responsive
1 parent 3718090 commit 2fa0490

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.item-container-compressor {
2+
overflow:scroll;
3+
overflow-y:scroll;
4+
overflow-x:hidden;
5+
max-height: 65vh;
6+
min-height: 65vh;
7+
}
8+
9+
.margin-title {
10+
margin-top: 20px !important;
11+
}

src/Components/CompressorLevel/CompressorLevel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const CompressorLevel = () => {
109109
) : (
110110
<>
111111
<div className="container compressor-container">
112-
<h2>List of mics:
112+
<h2 className="margin-title">List of mics:
113113
<Tooltip title="Here, you can adjust the level of compressor applied on your mics. Example: higher is the compressor level, more your voice will be eased.">
114114
<IconButton>
115115
<MdHelpOutline style={ { color: "white" } } />
@@ -122,7 +122,7 @@ export const CompressorLevel = () => {
122122
</>
123123
) : (
124124
<div className="actions-reactions-list">
125-
<div className="item-container">
125+
<div className="item-container-compressor">
126126
{exampleCompressorArray &&
127127
exampleCompressorArray.length > 0 ? (
128128
exampleCompressorArray.map((item, index) => {

src/Components/Sidebar/Sidebar.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
}
3333
.nav-menu {
3434
background-color: #18191F;
35-
width: 300px;
35+
width: 25vw;
36+
max-width: 300px;
3637
height: 100vh;
3738
justify-content: center;
3839
position: relative;

src/Components/Slider/Slider.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,12 @@ const CustomizedSlider = (props: any) => {
104104
<Box
105105
sx={{
106106
display: "flex",
107-
flexDirection: "column",
108107
alignItems: "center",
109108
p: 1,
110109
m: 1,
111110
}}
112111
>
113-
<Box sx={{ width: "100%", maxWidth: 720 }}>
112+
<Box sx={{ width: "65vw" }}>
114113
<MicroSlider
115114
key={`slider-compressor}`}
116115
onChangeCommitted={handleSliderChange}
@@ -121,7 +120,7 @@ const CustomizedSlider = (props: any) => {
121120
/>
122121
</Box>
123122
<Box
124-
sx={{ mt: 2 }}
123+
sx={{ marginTop: "-22px", paddingLeft: "5vw" }}
125124
onClick={handleMicToggle}
126125
style={{ color: props.isActive ? "green" : "red" }}
127126
>

0 commit comments

Comments
 (0)