WinslowFan Claude Opus 4.8 commited on
Commit
5e25dd9
·
1 Parent(s): 5ec3025

Optimize docs page for phone: wrap table cells, tighten on small screens

Browse files
frontend/src/pages/datasets/ProteinDocsPage.css CHANGED
@@ -108,3 +108,46 @@
108
  .markdown-body li {
109
  margin: 0.3rem 0;
110
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  .markdown-body li {
109
  margin: 0.3rem 0;
110
  }
111
+
112
+ /* Let table cells (and inline code, e.g. column names like `cath_superfamily`)
113
+ wrap instead of forcing the table wider than the screen. Code blocks (<pre>)
114
+ keep their own horizontal scroll. */
115
+ .markdown-body th,
116
+ .markdown-body td {
117
+ overflow-wrap: anywhere;
118
+ word-break: break-word;
119
+ }
120
+
121
+ .markdown-body :not(pre) > code {
122
+ overflow-wrap: anywhere;
123
+ word-break: break-word;
124
+ }
125
+
126
+ /* Phone view: tighten tables and headings so they fit a narrow screen. */
127
+ @media (max-width: 640px) {
128
+ .markdown-body {
129
+ font-size: 0.95rem;
130
+ }
131
+
132
+ .markdown-body table {
133
+ font-size: 0.78rem;
134
+ margin: 1rem 0;
135
+ }
136
+
137
+ .markdown-body th,
138
+ .markdown-body td {
139
+ padding: 0.4rem 0.5rem;
140
+ }
141
+
142
+ .markdown-body h1 {
143
+ font-size: 1.6rem;
144
+ }
145
+
146
+ .markdown-body h2 {
147
+ font-size: 1.3rem;
148
+ }
149
+
150
+ .markdown-body pre {
151
+ padding: 1rem;
152
+ }
153
+ }
frontend/src/pages/datasets/ProteinDocsPage.tsx CHANGED
@@ -24,8 +24,8 @@ export function ProteinDocsPage() {
24
  <div className="min-h-screen bg-white">
25
  {/* Header */}
26
  <section className="bg-gradient-to-b from-slate-50 to-white py-6 border-b border-gray-200">
27
- <div className="max-w-5xl mx-auto px-6 flex items-center justify-between">
28
- <div>
29
  <h1 className="text-3xl font-semibold text-slate-900">MuSProt Documentation</h1>
30
  <p className="text-slate-600 mt-1">Dataset format, schema, and usage examples</p>
31
  </div>
 
24
  <div className="min-h-screen bg-white">
25
  {/* Header */}
26
  <section className="bg-gradient-to-b from-slate-50 to-white py-6 border-b border-gray-200">
27
+ <div className="max-w-5xl mx-auto px-6 flex flex-wrap items-center justify-between gap-3">
28
+ <div className="min-w-0">
29
  <h1 className="text-3xl font-semibold text-slate-900">MuSProt Documentation</h1>
30
  <p className="text-slate-600 mt-1">Dataset format, schema, and usage examples</p>
31
  </div>