Skip to content

Commit 8735033

Browse files
committed
recorder: fix chart sizing
1 parent dc1926e commit 8735033

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

apps/recorder/interface.html

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,21 @@
44
<link rel="stylesheet" href="../../css/spectre-icons.min.css">
55
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
66
<style>
7-
.leaflet-map, .chart-canvas, .chart-wrapper {
7+
.leaflet-map {
88
width: 100%;
9+
max-width: 600px;
910
aspect-ratio: 1/1;
11+
margin: 0 auto;
12+
}
13+
.chart-canvas {
14+
width: 100%;
15+
aspect-ratio: 1/1;
16+
}
17+
.chart-wrapper {
18+
width: 100%;
19+
max-width: 600px;
20+
aspect-ratio: 1/1;
21+
margin: 0 auto;
1022
}
1123
.leaflet-map, .chart-container {
1224
border-radius: 4px;
@@ -35,9 +47,9 @@
3547
.chart-header:hover { background: #e9ecef; }
3648
.chart-title { font-weight: 600; color: #333; margin: 0; }
3749
.chart-toggle { float: right; font-size: 14px; color: #666; }
38-
.chart-content { padding: 15px; overflow: hidden; }
50+
.chart-content { padding: 15px; }
3951
.chart-content.collapsed { display: none; }
40-
.chart-canvas { margin-bottom: 10px; }
52+
.chart-wrapper { margin-bottom: 10px; }
4153
.chart-export { text-align: right; margin-top: 10px; }
4254
.chart-export button { font-size: 0.85em; padding: 4px 8px; }
4355
.no-data-message { text-align: center; color: #666; font-style: italic; padding: 20px; }
@@ -49,6 +61,7 @@
4961
.accordion-header { cursor: pointer; padding: 10px; background: #f8f9fa; border-radius: 4px; margin-bottom: 5px; }
5062
.accordion-header:hover { background: #e9ecef; }
5163
.track-loading { text-align: center; padding: 20px; color: #666; }
64+
body { margin: 0; }
5265
</style>
5366
</head>
5467
<body>

0 commit comments

Comments
 (0)