Skip to content

Commit 288345e

Browse files
authored
fix: [DebugBar] make debug bar more user-friendly on mobile (#9473)
1 parent b21343a commit 288345e

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

admin/css/debug-toolbar/toolbar.scss

+25
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,31 @@
457457
}
458458
}
459459

460+
@media screen and (max-width: 768px) {
461+
#debug-bar {
462+
table {
463+
display: block;
464+
overflow-x: auto;
465+
font-size: 12px;
466+
margin: 5px 5px 10px 5px;
467+
468+
td,
469+
th {
470+
padding: 4px 6px;
471+
}
472+
}
473+
474+
.timeline {
475+
display: block;
476+
white-space: nowrap;
477+
font-size: 12px;
478+
}
479+
480+
.toolbar {
481+
overflow-x: auto;
482+
}
483+
}
484+
}
460485

461486
// THEMES
462487
// ========================================================================== */

system/Debug/Toolbar/Views/toolbar.css

+20
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,26 @@
332332
display: none !important;
333333
}
334334
}
335+
@media screen and (max-width: 768px) {
336+
#debug-bar table {
337+
display: block;
338+
overflow-x: auto;
339+
font-size: 12px;
340+
margin: 5px 5px 10px 5px;
341+
}
342+
#debug-bar table td,
343+
#debug-bar table th {
344+
padding: 4px 6px;
345+
}
346+
#debug-bar .timeline {
347+
display: block;
348+
white-space: nowrap;
349+
font-size: 12px;
350+
}
351+
#debug-bar .toolbar {
352+
overflow-x: auto;
353+
}
354+
}
335355
#debug-icon {
336356
background-color: #FFFFFF;
337357
box-shadow: 0 0 4px #DFDFDF;

0 commit comments

Comments
 (0)