Skip to content

Commit 3dc81e1

Browse files
committed
overflow
1 parent 4252dee commit 3dc81e1

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

manager/src/templates/single_session_data.html

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
1414
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-zoom@2.0.1"></script>
1515

16-
<style>
16+
<style>
1717
.charts-grid {
1818
display: flex;
1919
flex-direction: column;
@@ -23,10 +23,15 @@
2323
}
2424
.chart-container {
2525
width: 90vw;
26-
max-width: 1100px;
26+
max-width: 1200px;
2727
position: relative;
2828
display: flex;
2929
flex-direction: column;
30+
overflow: hidden; /* hide any overflow beyond container */
31+
}
32+
.chart-container canvas {
33+
flex: 0 0 420px; /* keep chart height */
34+
width: 100% !important;
3035
}
3136
.chart-container canvas {
3237
flex: 0 0 420px; /* keep chart height */
@@ -66,18 +71,19 @@
6671
gap: 4px;
6772
}
6873
.zoom-controls button {
69-
display: flex;
70-
align-items: center;
71-
justify-content: center;
7274
width: 32px;
7375
height: 32px;
7476
font-size: 1rem;
7577
border: 1px solid #ccc;
7678
border-radius: 4px;
77-
background: #dd7973;
79+
background: #f8f9fa;
7880
cursor: pointer;
7981
transition: background 0.2s ease;
80-
margin: 0; /* reset default margins */
82+
margin: 0;
83+
padding: 0;
84+
display: flex;
85+
align-items: center;
86+
justify-content: center;
8187
}
8288
.zoom-controls button:hover {
8389
background: #e2e6ea;
@@ -510,8 +516,8 @@ <h3 style="text-align:center;">Jitter</h3>
510516
y: {
511517
min: 0,
512518
max: 1,
513-
minRange: 0.1,
514-
maxRange: 2
519+
minRange: 0.5,
520+
maxRange: 1
515521
}
516522
}
517523
};

0 commit comments

Comments
 (0)