Skip to content

Commit 8137ba1

Browse files
committed
commit 1234567890abcdef1234567890abcdef12345678
1 parent ac22544 commit 8137ba1

9 files changed

Lines changed: 66 additions & 8 deletions

File tree

frontend/src/index.css

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,4 +577,56 @@ code, pre, kbd, samp {
577577
}
578578

579579
/* ── md:hidden / hidden utility (mirrors Tailwind for non-Tailwind usage) ─ */
580+
581+
/* ═══════════════════════════════════════════════════════════════════════════
582+
FORM MOBILE RESPONSIVENESS — shared across public & console pages
583+
══════════════════════════════════════════════════════════════════════════ */
584+
585+
/* Responsive 2-column: form panel + info/status sidebar */
586+
.form-grid-sidebar {
587+
display: grid;
588+
grid-template-columns: 1fr;
589+
gap: 24px;
590+
align-items: start;
591+
}
592+
593+
@media (min-width: 768px) {
594+
/* Contact page: wide form + narrow info panel */
595+
.form-grid-contact { grid-template-columns: 1fr 340px; gap: 64px; }
596+
/* Dashboard Support: form + resources sidebar */
597+
.form-grid-support { grid-template-columns: 1fr 320px; align-items: flex-start; }
598+
/* SMTP config: config panel + status/test sidebar */
599+
.form-grid-smtp { grid-template-columns: 2fr 1fr; gap: 24px; }
600+
/* User analytics: user list + detail panel */
601+
.form-grid-user-analytics { grid-template-columns: 1fr 2fr; gap: 24px; }
602+
}
603+
604+
/* Responsive sidebar nav + content grid (e.g. Discussions page) */
605+
.page-content-grid {
606+
display: grid;
607+
grid-template-columns: 1fr;
608+
gap: 24px;
609+
}
610+
611+
@media (min-width: 768px) {
612+
.page-content-grid-discussions { grid-template-columns: 220px 1fr; gap: 32px; }
613+
}
614+
615+
/* Scrollable key listing tables (SSH / GPG keys) */
616+
.keys-table-scroll {
617+
overflow-x: auto;
618+
-webkit-overflow-scrolling: touch;
619+
}
620+
.keys-table-scroll > div {
621+
min-width: 640px;
622+
}
623+
624+
/* Ensure search/filter inputs in form toolbars never overflow on mobile */
625+
@media (max-width: 767px) {
626+
.form-search-input {
627+
width: 100% !important;
628+
max-width: 100% !important;
629+
box-sizing: border-box !important;
630+
}
631+
}
580632
/* Note: Tailwind handles .hidden and .md:flex already via @tailwind utilities */

frontend/src/pages/Contact.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ const Contact = () => {
160160
{/* Main Content */}
161161
<section className="gsw-section">
162162
<div className="gsw-container">
163-
<div style={{ display: 'grid', gridTemplateColumns: '1fr 340px', gap: '64px', alignItems: 'start' }}>
163+
<div className="form-grid-sidebar form-grid-contact">
164164

165165
{/* Form Panel */}
166-
<div style={{ background: '#F8F9FA', border: '1px solid #E5E7EB', padding: '48px' }}>
166+
<div style={{ background: '#F8F9FA', border: '1px solid #E5E7EB', padding: 'clamp(20px, 5vw, 48px)' }}>
167167
<h2 style={{ fontSize: '22px', fontWeight: 700, color: '#111827', marginBottom: '32px', letterSpacing: '-0.01em' }}>
168168
Send Message
169169
</h2>

frontend/src/pages/admin-console/Users.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@ export default function Users() {
8686
value={search}
8787
onChange={(e) => setSearch(e.target.value)}
8888
placeholder="Search users…"
89+
className="form-search-input"
8990
style={{
9091
background: '#FFFFFF', border: BD,
9192
color: '#1F2937', fontSize: 12, padding: '6px 12px',
92-
outline: 'none', fontFamily: 'inherit', width: 220,
93+
outline: 'none', fontFamily: 'inherit', width: '100%', maxWidth: 220, boxSizing: 'border-box',
9394
}}
9495
/>
9596
</div>

frontend/src/pages/billing-console/UserAnalytics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const UserAnalytics = () => {
8383
<p style={{ fontSize: 13, color: '#6B7280', margin: 0 }}>Usage and billing activity per individual user.</p>
8484
</div>
8585

86-
<div style={{ display: 'grid', gridTemplateColumns: '1fr 2fr', gap: 24 }}>
86+
<div className="form-grid-sidebar form-grid-user-analytics">
8787
{/* Left: User list */}
8888
<div>
8989
<div style={{ ...CARD, marginBottom: 16 }}>

frontend/src/pages/community/Discussions.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ const Discussions = () => {
5858
style={{
5959
padding: '10px 16px', border: '1px solid #D1D5DB',
6060
fontSize: 13, fontFamily: 'inherit', outline: 'none',
61-
width: 300, color: '#111827', background: '#FFFFFF',
61+
width: '100%', maxWidth: 300, boxSizing: 'border-box',
62+
color: '#111827', background: '#FFFFFF',
6263
}}
6364
/>
6465
<button
@@ -76,9 +77,9 @@ const Discussions = () => {
7677

7778
{/* Main layout */}
7879
<div
80+
className="page-content-grid page-content-grid-discussions"
7981
style={{
8082
maxWidth: 1440, margin: '0 auto', padding: '40px 24px',
81-
display: 'grid', gridTemplateColumns: '220px 1fr', gap: 32,
8283
}}
8384
>
8485
{/* Sidebar */}

frontend/src/pages/dashboard/Support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const Support = () => {
5959
</p>
6060
</div>
6161

62-
<div style={{ display: 'grid', gridTemplateColumns: '1fr 320px', gap: 24, alignItems: 'flex-start' }}>
62+
<div className="form-grid-sidebar form-grid-support" style={{ gap: 24 }}>
6363

6464
{/* Ticket form */}
6565
<div style={{ background: '#FFFFFF', border: '1px solid #E5E7EB', padding: '32px' }}>

frontend/src/pages/email-console/SMTP.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function EmailSMTP() {
6161
<p style={{ fontSize: 13, color: '#4B5563', margin: '6px 0 0' }}>Outbound mail server credentials and delivery configuration.</p>
6262
</div>
6363

64-
<div style={{ display: 'grid', gridTemplateColumns: '2fr 1fr', gap: 24 }}>
64+
<div className="form-grid-sidebar form-grid-smtp">
6565

6666
{/* Config form */}
6767
<div style={{ background: '#FFFFFF', border: BD, padding: 'clamp(14px, 3.5vw, 28px) clamp(14px, 3.5vw, 32px)' }}>

frontend/src/pages/settings/GPGKeys.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ const GPGKeys = () => {
283283
</div>
284284

285285
{/* Table header */}
286+
<div className="keys-table-scroll">
286287
<div
287288
style={{
288289
display: 'grid', gridTemplateColumns: COL_WIDTHS,
@@ -405,6 +406,7 @@ const GPGKeys = () => {
405406
</div>
406407
))
407408
)}
409+
</div>{/* end keys-table-scroll */}
408410
</div>
409411
</div>
410412
);

frontend/src/pages/settings/SSHKeys.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ const SSHKeys = () => {
314314
</div>
315315

316316
{/* Table header */}
317+
<div className="keys-table-scroll">
317318
<div
318319
style={{
319320
display: 'grid', gridTemplateColumns: COL_WIDTHS,
@@ -424,6 +425,7 @@ const SSHKeys = () => {
424425
</div>
425426
))
426427
)}
428+
</div>{/* end keys-table-scroll */}
427429
</div>
428430
</div>
429431
);

0 commit comments

Comments
 (0)