Skip to content

Commit 20c0809

Browse files
authored
changed the mobile view breakdown, based on folding phones and tablets (#113)
Signed-off-by: Kai Wagner <kai.wagner@percona.com>
1 parent ee7fc75 commit 20c0809

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

app/assets/stylesheets/base/root.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ body.sidebar-collapsed .page-layout.with-sidebar > main.container {
8787
display: none;
8888
}
8989

90-
@media (max-width: 900px) {
90+
@media (max-width: 1024px) {
9191
.container {
9292
padding: 0;
9393
}

app/assets/stylesheets/components/navigation.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ body.has-sidebar .nav-burger {
327327
display: flex;
328328
}
329329

330-
@media (max-width: 900px) {
330+
@media (max-width: 1024px) {
331331
.nav-container {
332332
padding: 0 var(--spacing-4);
333333
}

app/assets/stylesheets/components/settings.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
padding: var(--spacing-2) var(--spacing-3);
327327
}
328328

329-
@media (max-width: 900px) {
329+
@media (max-width: 1024px) {
330330
.settings-page .email-table {
331331
table-layout: fixed;
332332
}

app/assets/stylesheets/components/sidebar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
}
2323

24-
@media (max-width: 900px) {
24+
@media (max-width: 1024px) {
2525
.sidebar {
2626
position: static;
2727
top: auto;

app/assets/stylesheets/components/topics.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ a.topic-icon {
258258
}
259259
}
260260

261-
@media (max-width: 900px) {
261+
@media (max-width: 1024px) {
262262
.topics-table {
263263
& th,
264264
& td {
@@ -572,7 +572,7 @@ a.topic-icon {
572572
flex-shrink: 0;
573573
}
574574

575-
@media (max-width: 900px) {
575+
@media (max-width: 1024px) {
576576
.topic-title-main {
577577
display: none;
578578
}

app/javascript/controllers/nav_overflow_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Controller } from "@hotwired/stimulus"
22

3-
const MOBILE_BREAKPOINT = "(max-width: 900px)"
3+
const MOBILE_BREAKPOINT = "(max-width: 1024px)"
44

55
export default class extends Controller {
66
static targets = ["container", "menu", "overflow", "overflowMenu", "item"]

app/javascript/controllers/sidebar_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default class extends Controller {
162162
}
163163

164164
isMobile() {
165-
return window.matchMedia("(max-width: 900px)").matches
165+
return window.matchMedia("(max-width: 1024px)").matches
166166
}
167167

168168
closeOnNavigate(event) {

0 commit comments

Comments
 (0)