fisherman611 commited on
Commit
689d22e
·
verified ·
1 Parent(s): 4f00e29

Update css/style.css

Browse files
Files changed (1) hide show
  1. css/style.css +53 -12
css/style.css CHANGED
@@ -27,18 +27,18 @@
27
  .gradio-container {
28
  font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
29
  background: var(--background-color);
30
- min-height: 100vh;
31
- max-width: none !important;
32
  margin: 0 !important;
33
  padding: 0 !important;
34
  color: var(--text-primary);
35
  }
36
 
37
- /* Full screen layout */
38
  .main-container {
39
- height: 100vh;
40
- max-height: 100vh;
41
- overflow: hidden;
42
  }
43
 
44
  /* Header styling - Gemini gradient */
@@ -97,8 +97,9 @@
97
  background: var(--surface-color);
98
  background-clip: padding-box;
99
  box-shadow: var(--shadow-lg);
100
- overflow: hidden;
101
- height: calc(100vh - 200px);
 
102
  position: relative;
103
  }
104
 
@@ -540,7 +541,8 @@ button[title*="Gửi"],
540
  border: 1px solid var(--border-color);
541
  border-radius: 12px;
542
  padding: 1.25rem;
543
- height: calc(100vh - 200px);
 
544
  overflow-y: auto;
545
  box-shadow: var(--shadow);
546
  }
@@ -614,9 +616,10 @@ button[title*="Gửi"],
614
  background: var(--text-secondary);
615
  }
616
 
617
- /* Full height layout */
618
  .gr-column {
619
- height: calc(100vh - 140px) !important;
 
620
  }
621
 
622
  /* Card styling for grouped elements */
@@ -664,16 +667,22 @@ button[title*="Gửi"],
664
 
665
  .gr-column {
666
  height: auto !important;
 
667
  }
668
 
669
  .chat-container-main,
670
  .docs-display {
671
  height: 400px !important;
 
672
  }
673
 
674
  .main-input {
675
  border-radius: 16px !important;
676
  }
 
 
 
 
677
  }
678
 
679
  /* General button styling */
@@ -706,4 +715,36 @@ button[title*="Gửi"],
706
  transform: translateY(-1px) !important;
707
  box-shadow: var(--shadow-md) !important;
708
  filter: brightness(1.05) !important;
709
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  .gradio-container {
28
  font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
29
  background: var(--background-color);
30
+ min-height: 600px;
31
+ max-width: 100% !important;
32
  margin: 0 !important;
33
  padding: 0 !important;
34
  color: var(--text-primary);
35
  }
36
 
37
+ /* Flexible layout for Hugging Face */
38
  .main-container {
39
+ min-height: 600px;
40
+ max-width: 100%;
41
+ overflow: visible;
42
  }
43
 
44
  /* Header styling - Gemini gradient */
 
97
  background: var(--surface-color);
98
  background-clip: padding-box;
99
  box-shadow: var(--shadow-lg);
100
+ overflow-y: auto;
101
+ height: 500px;
102
+ max-height: 600px;
103
  position: relative;
104
  }
105
 
 
541
  border: 1px solid var(--border-color);
542
  border-radius: 12px;
543
  padding: 1.25rem;
544
+ height: 500px;
545
+ max-height: 600px;
546
  overflow-y: auto;
547
  box-shadow: var(--shadow);
548
  }
 
616
  background: var(--text-secondary);
617
  }
618
 
619
+ /* Flexible height layout */
620
  .gr-column {
621
+ min-height: 500px !important;
622
+ height: auto !important;
623
  }
624
 
625
  /* Card styling for grouped elements */
 
667
 
668
  .gr-column {
669
  height: auto !important;
670
+ min-height: 400px !important;
671
  }
672
 
673
  .chat-container-main,
674
  .docs-display {
675
  height: 400px !important;
676
+ max-height: 500px !important;
677
  }
678
 
679
  .main-input {
680
  border-radius: 16px !important;
681
  }
682
+
683
+ .main-container {
684
+ min-height: 500px;
685
+ }
686
  }
687
 
688
  /* General button styling */
 
715
  transform: translateY(-1px) !important;
716
  box-shadow: var(--shadow-md) !important;
717
  filter: brightness(1.05) !important;
718
+ }
719
+
720
+ /* Hugging Face Spaces specific fixes */
721
+ .gradio-container .main {
722
+ max-width: 100% !important;
723
+ padding: 1rem !important;
724
+ }
725
+
726
+ /* Ensure proper spacing */
727
+ .gr-row {
728
+ margin-bottom: 1rem !important;
729
+ }
730
+
731
+ .gr-column {
732
+ padding: 0.5rem !important;
733
+ }
734
+
735
+ /* Fix any potential scrolling issues */
736
+ body {
737
+ overflow-x: auto !important;
738
+ overflow-y: auto !important;
739
+ }
740
+
741
+ html {
742
+ overflow-x: auto !important;
743
+ overflow-y: auto !important;
744
+ }
745
+
746
+ /* Ensure components don't exceed container width */
747
+ .gradio-container * {
748
+ max-width: 100% !important;
749
+ box-sizing: border-box !important;
750
+ }