Skip to content

Commit 86177b7

Browse files
fix commads page on mobile
1 parent 6ae0abf commit 86177b7

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

static/css/commands-page.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ html.dark body {
8787
transition: background-color 0.3s ease, color 0.3s ease;
8888
background-color: var(--bg-primary);
8989
color: var(--text-primary);
90+
width: 100%;
91+
max-width: 100%;
92+
overflow-x: hidden;
9093
}
9194

9295
/* Header Section */
@@ -476,6 +479,9 @@ html.dark body {
476479
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
477480
gap: 16px;
478481
animation: fadeIn 0.3s ease;
482+
width: 100%;
483+
max-width: 100%;
484+
overflow: hidden;
479485
}
480486

481487
/* List View */
@@ -737,14 +743,25 @@ html.dark body {
737743
gap: 12px;
738744
}
739745

746+
.commands-controls {
747+
width: 100%;
748+
flex-wrap: wrap;
749+
}
750+
740751
.sort-container {
741752
width: 100%;
753+
flex: 1;
754+
min-width: 0;
742755
}
743756

744757
.sort-select {
745758
width: 100%;
746759
}
747760

761+
.view-toggle {
762+
flex-shrink: 0;
763+
}
764+
748765
.commands-grid {
749766
grid-template-columns: 1fr;
750767
}
@@ -755,25 +772,51 @@ html.dark body {
755772
font-size: 24px;
756773
}
757774

775+
.commands-header {
776+
padding: 40px 16px;
777+
}
778+
758779
.commands-layout {
759780
padding: 16px;
760781
}
761782

762783
.commands-sidebar {
763784
grid-template-columns: 1fr;
785+
padding: 16px;
786+
}
787+
788+
.commands-main {
789+
min-width: 0;
790+
overflow: hidden;
791+
}
792+
793+
.commands-grid {
794+
grid-template-columns: 1fr;
795+
min-width: 0;
764796
}
765797

766798
.command-card {
767799
padding: 16px;
800+
min-width: 0;
801+
width: 100%;
768802
}
769803

770804
.command-name {
771805
font-size: 16px;
806+
word-break: break-word;
772807
}
773808

774809
.command-description {
775810
font-size: 13px;
776811
}
812+
813+
.commands-controls {
814+
gap: 12px;
815+
}
816+
817+
.view-toggle-btn {
818+
padding: 6px 10px;
819+
}
777820
}
778821

779822
/* Loading State */

0 commit comments

Comments
 (0)