JenishMakwana commited on
Commit
06e3fbd
·
1 Parent(s): 5586a0d

style: fix mobile header notch overlap and chat bubble citation overflow

Browse files
Files changed (1) hide show
  1. frontend-react/src/App.css +16 -2
frontend-react/src/App.css CHANGED
@@ -44,6 +44,7 @@ body {
44
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
45
  overflow: hidden;
46
  height: 100vh;
 
47
  }
48
 
49
  h1,
@@ -57,6 +58,7 @@ h3,
57
  .App {
58
  display: flex;
59
  height: 100vh;
 
60
  width: 100vw;
61
  background: radial-gradient(circle at 50% -20%, rgba(168, 85, 247, 0.15) 0%, rgba(245, 158, 11, 0.04) 40%, var(--bg-deep) 80%);
62
  }
@@ -358,8 +360,10 @@ h3,
358
  }
359
 
360
  .chat-header {
361
- height: 4rem;
362
- padding: 0 2rem;
 
 
363
  display: flex;
364
  align-items: center;
365
  justify-content: space-between;
@@ -467,6 +471,7 @@ h3,
467
 
468
  .message-content {
469
  flex: 1;
 
470
  }
471
 
472
  /* Premium Markdown Formatting in Chat */
@@ -1548,6 +1553,15 @@ h3,
1548
  font-style: italic;
1549
  line-height: 1.4;
1550
  white-space: pre-wrap;
 
 
 
 
 
 
 
 
 
1551
  }
1552
 
1553
  .message-content .highlight-active {
 
44
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
45
  overflow: hidden;
46
  height: 100vh;
47
+ height: 100dvh;
48
  }
49
 
50
  h1,
 
58
  .App {
59
  display: flex;
60
  height: 100vh;
61
+ height: 100dvh;
62
  width: 100vw;
63
  background: radial-gradient(circle at 50% -20%, rgba(168, 85, 247, 0.15) 0%, rgba(245, 158, 11, 0.04) 40%, var(--bg-deep) 80%);
64
  }
 
360
  }
361
 
362
  .chat-header {
363
+ height: calc(4rem + env(safe-area-inset-top, 0px));
364
+ padding-top: env(safe-area-inset-top, 0px);
365
+ padding-left: 2rem;
366
+ padding-right: 2rem;
367
  display: flex;
368
  align-items: center;
369
  justify-content: space-between;
 
471
 
472
  .message-content {
473
  flex: 1;
474
+ min-width: 0;
475
  }
476
 
477
  /* Premium Markdown Formatting in Chat */
 
1553
  font-style: italic;
1554
  line-height: 1.4;
1555
  white-space: pre-wrap;
1556
+ word-break: break-all;
1557
+ overflow-wrap: break-word;
1558
+ }
1559
+
1560
+ .message-content hr {
1561
+ border: 0;
1562
+ height: 1px;
1563
+ background: var(--glass-border);
1564
+ margin: 1rem 0;
1565
  }
1566
 
1567
  .message-content .highlight-active {