lvwerra HF Staff commited on
Commit
17752a6
·
verified ·
1 Parent(s): 314bac0

Layout: min-width:0 on grid children for proper shrinking; mobile media query

Browse files
Files changed (1) hide show
  1. static/index.html +18 -1
static/index.html CHANGED
@@ -35,6 +35,19 @@
35
  font-size: 12px; font-weight: 300; line-height: 1.6;
36
  color: var(--ink); background: var(--bg);
37
  padding: 24px 32px 64px;
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }
39
 
40
  /* --- Header --- */
@@ -124,10 +137,14 @@
124
  /* --- Layout --- */
125
  .columns {
126
  display: grid;
127
- grid-template-columns: 1fr 380px;
128
  gap: 28px;
129
  align-items: start;
130
  }
 
 
 
 
131
  @media (max-width: 900px) {
132
  .columns { grid-template-columns: 1fr; }
133
  }
 
35
  font-size: 12px; font-weight: 300; line-height: 1.6;
36
  color: var(--ink); background: var(--bg);
37
  padding: 24px 32px 64px;
38
+ overflow-x: hidden; /* belt-and-suspenders against any stray overflow */
39
+ }
40
+ /* Mobile: tighter padding, smaller title, denser subtext. */
41
+ @media (max-width: 640px) {
42
+ body { padding: 16px 14px 48px; }
43
+ h1 { font-size: 18px; letter-spacing: 0.1px; }
44
+ .subtext { font-size: 10px; letter-spacing: 0.3px; }
45
+ .subtext .sep { margin: 0 6px; }
46
+ .btn-primary { font-size: 10px; padding: 6px 10px; }
47
+ .btn-primary .plus { font-size: 13px; margin-right: 4px; }
48
+ .title-row { gap: 10px; }
49
+ .subtitle { font-size: 12px; }
50
+ .chart-wrap { height: 260px; padding: 8px; }
51
  }
52
 
53
  /* --- Header --- */
 
137
  /* --- Layout --- */
138
  .columns {
139
  display: grid;
140
+ grid-template-columns: minmax(0, 1fr) 380px;
141
  gap: 28px;
142
  align-items: start;
143
  }
144
+ /* min-width: 0 lets grid children shrink with the viewport — without this,
145
+ `min-width: auto` defaults pin the children to their content min-width
146
+ and the chart canvas refuses to shrink when the window narrows. */
147
+ .col-left, .messages-col { min-width: 0; }
148
  @media (max-width: 900px) {
149
  .columns { grid-template-columns: 1fr; }
150
  }