EmTpro01 commited on
Commit
7329861
·
verified ·
1 Parent(s): 2609191

Update static/css/style.css

Browse files
Files changed (1) hide show
  1. static/css/style.css +28 -7
static/css/style.css CHANGED
@@ -506,7 +506,7 @@ select.form-control {
506
  transform: translateY(-1px);
507
  }
508
 
509
- /* Chat Area */
510
  .chat-area {
511
  display: flex;
512
  flex-direction: column;
@@ -515,14 +515,18 @@ select.form-control {
515
  border: 1px solid var(--color-card-border);
516
  box-shadow: var(--shadow-md);
517
  overflow: hidden;
 
 
 
518
  }
519
 
520
  .chat-container {
521
  flex: 1;
522
  padding: var(--space-20);
 
523
  overflow-y: auto;
524
- min-height: 400px;
525
- max-height: calc(100vh - 300px);
526
  display: flex;
527
  flex-direction: column;
528
  gap: var(--space-16);
@@ -628,11 +632,15 @@ select.form-control {
628
  .typing-dot:nth-child(1) { animation-delay: -0.32s; }
629
  .typing-dot:nth-child(2) { animation-delay: -0.16s; }
630
 
631
- /* Chat Input */
632
  .chat-input-container {
633
  padding: var(--space-20);
634
  border-top: 1px solid var(--color-border);
635
  background: var(--color-surface);
 
 
 
 
636
  }
637
 
638
  .input-wrapper {
@@ -729,7 +737,7 @@ select.form-control {
729
  cursor: pointer;
730
  }
731
 
732
- /* Responsive Design */
733
  .mobile-only {
734
  display: none;
735
  }
@@ -738,6 +746,7 @@ select.form-control {
738
  .content-wrapper {
739
  grid-template-columns: 1fr;
740
  gap: 0;
 
741
  }
742
 
743
  .sidebar {
@@ -768,8 +777,13 @@ select.form-control {
768
  }
769
 
770
  .chat-container {
771
- min-height: 300px;
772
- max-height: calc(100vh - 250px);
 
 
 
 
 
773
  }
774
 
775
  .message-bubble {
@@ -777,6 +791,13 @@ select.form-control {
777
  }
778
  }
779
 
 
 
 
 
 
 
 
780
  /* Animations */
781
  @keyframes fadeInUp {
782
  from {
 
506
  transform: translateY(-1px);
507
  }
508
 
509
+ /* Chat Area - UPDATED */
510
  .chat-area {
511
  display: flex;
512
  flex-direction: column;
 
515
  border: 1px solid var(--color-card-border);
516
  box-shadow: var(--shadow-md);
517
  overflow: hidden;
518
+ position: relative;
519
+ min-height: 400px;
520
+ max-height: calc(100vh - 200px);
521
  }
522
 
523
  .chat-container {
524
  flex: 1;
525
  padding: var(--space-20);
526
+ padding-bottom: calc(var(--space-20) + 80px); /* Add bottom padding to prevent content overlap */
527
  overflow-y: auto;
528
+ min-height: 300px;
529
+ max-height: calc(100vh - 350px); /* Adjusted to account for input container */
530
  display: flex;
531
  flex-direction: column;
532
  gap: var(--space-16);
 
632
  .typing-dot:nth-child(1) { animation-delay: -0.32s; }
633
  .typing-dot:nth-child(2) { animation-delay: -0.16s; }
634
 
635
+ /* Chat Input - UPDATED */
636
  .chat-input-container {
637
  padding: var(--space-20);
638
  border-top: 1px solid var(--color-border);
639
  background: var(--color-surface);
640
+ position: sticky;
641
+ bottom: 0;
642
+ z-index: 10;
643
+ box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Add subtle shadow for separation */
644
  }
645
 
646
  .input-wrapper {
 
737
  cursor: pointer;
738
  }
739
 
740
+ /* Responsive Design - UPDATED */
741
  .mobile-only {
742
  display: none;
743
  }
 
746
  .content-wrapper {
747
  grid-template-columns: 1fr;
748
  gap: 0;
749
+ height: calc(100vh - 150px); /* Adjusted for mobile */
750
  }
751
 
752
  .sidebar {
 
777
  }
778
 
779
  .chat-container {
780
+ min-height: 250px;
781
+ max-height: calc(100vh - 300px); /* Better mobile spacing */
782
+ padding-bottom: calc(var(--space-20) + 60px); /* Mobile-specific bottom padding */
783
+ }
784
+
785
+ .chat-input-container {
786
+ padding: var(--space-16); /* Slightly less padding on mobile */
787
  }
788
 
789
  .message-bubble {
 
791
  }
792
  }
793
 
794
+ /* Additional zoom handling - NEW */
795
+ @media (min-resolution: 1.5dppx) {
796
+ .chat-input-container {
797
+ padding-bottom: calc(var(--space-20) + 10px); /* Extra padding for high DPI displays */
798
+ }
799
+ }
800
+
801
  /* Animations */
802
  @keyframes fadeInUp {
803
  from {