sam-fritz commited on
Commit
d54d42b
·
verified ·
1 Parent(s): c149aa2

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +38 -102
index.html CHANGED
@@ -14,78 +14,69 @@
14
  margin: 0;
15
  padding: 0;
16
  width: 100%;
17
- min-height: 100vh;
18
- background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
19
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
20
  }
21
 
22
- /* Main wrapper for better SharePoint compatibility */
23
  .chat-wrapper {
24
  width: 100%;
25
- max-width: 1200px;
26
  margin: 0 auto;
27
  padding: 20px;
28
- min-height: 100vh;
29
- display: flex;
30
- flex-direction: column;
31
  }
32
 
33
- /* HEADER STYLES */
34
  .header-message {
35
  width: 100%;
36
  background: white;
37
- padding: 16px 24px;
38
- border-radius: 12px;
39
  text-align: center;
40
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
41
- margin-bottom: 20px;
42
- flex-shrink: 0;
43
  }
44
 
45
  .header-message h2 {
46
- margin: 0 0 8px 0;
47
  color: #2d3748;
48
- font-size: 24px;
49
  font-weight: 700;
50
  display: flex;
51
  align-items: center;
52
  justify-content: center;
53
- gap: 12px;
54
- flex-wrap: wrap;
55
  }
56
 
57
  .header-message h2 img {
58
- width: 40px;
59
- height: 40px;
60
  object-fit: contain;
61
  }
62
 
63
  .header-message p {
64
  margin: 0;
65
  color: #4a5568;
66
- font-size: 14px;
67
- line-height: 1.5;
68
  }
69
 
70
- /* CHAT CONTAINER - SharePoint Optimized */
71
  .chat-container {
72
- flex: 1;
73
  width: 100%;
74
- min-height: 600px;
75
  position: relative;
76
  background-color: white;
77
- border-radius: 12px;
78
- box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
79
  border: 1px solid rgba(0, 0, 0, 0.05);
 
80
  overflow: hidden;
81
- margin-bottom: 20px;
82
  }
83
 
84
  #anything-llm-embed-chat-container {
85
  position: relative !important;
86
  width: 100% !important;
87
  height: 100% !important;
88
- min-height: 600px !important;
89
  background-color: transparent !important;
90
  box-shadow: none !important;
91
  border: none !important;
@@ -100,116 +91,61 @@
100
  height: 100% !important;
101
  border: none !important;
102
  background-color: white !important;
103
- border-radius: 12px !important;
104
  }
105
 
106
- /* --- TABLET RESPONSIVENESS (Max Width 1024px) --- */
107
- @media screen and (max-width: 1024px) {
108
  .chat-wrapper {
 
109
  padding: 15px;
110
  }
111
 
112
- .header-message {
113
- padding: 14px 20px;
114
- }
115
-
116
- .header-message h2 {
117
- font-size: 20px;
118
- }
119
-
120
  .chat-container {
121
- min-height: 550px;
122
- }
123
-
124
- #anything-llm-embed-chat-container {
125
- min-height: 550px !important;
126
- }
127
- }
128
-
129
- /* --- MOBILE RESPONSIVENESS (Max Width 768px) --- */
130
- @media screen and (max-width: 768px) {
131
- .chat-wrapper {
132
- padding: 10px;
133
  }
134
 
135
  .header-message {
136
- padding: 12px 16px;
137
- margin-bottom: 15px;
138
  }
139
 
140
  .header-message h2 {
141
- font-size: 18px;
142
  }
143
 
144
  .header-message h2 img {
145
- width: 30px;
146
- height: 30px;
147
  }
148
 
149
  .header-message p {
150
- font-size: 12px;
151
- }
152
-
153
- .chat-container {
154
- min-height: 500px;
155
- border-radius: 8px;
156
- }
157
-
158
- #anything-llm-embed-chat-container {
159
- min-height: 500px !important;
160
- }
161
-
162
- #anything-llm-embed-chat-container iframe {
163
- border-radius: 8px !important;
164
  }
165
  }
166
 
167
- /* --- EXTRA SMALL MOBILE (Max Width 480px) --- */
168
  @media screen and (max-width: 480px) {
169
  .chat-wrapper {
170
- padding: 8px;
171
  }
172
 
173
- body, html {
174
- background: #f5f7fa;
 
175
  }
176
 
177
  .header-message {
178
- padding: 10px 12px;
179
- margin-bottom: 10px;
180
- border-radius: 8px;
181
  }
182
 
183
  .header-message h2 {
184
- font-size: 16px;
185
- gap: 8px;
186
- }
187
-
188
- .header-message h2 img {
189
- width: 28px;
190
- height: 28px;
191
  }
192
 
193
  .header-message p {
194
- font-size: 11px;
195
- line-height: 1.4;
196
- }
197
-
198
- .chat-container {
199
- min-height: 450px;
200
- border-radius: 8px;
201
- margin-bottom: 10px;
202
  }
203
-
204
- #anything-llm-embed-chat-container {
205
- min-height: 450px !important;
206
- }
207
- }
208
-
209
- /* SharePoint-specific overrides */
210
- body[class*="ms-"] .chat-wrapper,
211
- .ms-webpart-chrome-content .chat-wrapper {
212
- max-width: 100%;
213
  }
214
  </style>
215
  </head>
 
14
  margin: 0;
15
  padding: 0;
16
  width: 100%;
17
+ background: transparent;
 
18
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
19
  }
20
 
21
+ /* Main wrapper - compact card */
22
  .chat-wrapper {
23
  width: 100%;
24
+ max-width: 420px;
25
  margin: 0 auto;
26
  padding: 20px;
 
 
 
27
  }
28
 
29
+ /* HEADER STYLES - Compact */
30
  .header-message {
31
  width: 100%;
32
  background: white;
33
+ padding: 12px 16px;
34
+ border-radius: 12px 12px 0 0;
35
  text-align: center;
36
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 
 
37
  }
38
 
39
  .header-message h2 {
40
+ margin: 0 0 4px 0;
41
  color: #2d3748;
42
+ font-size: 18px;
43
  font-weight: 700;
44
  display: flex;
45
  align-items: center;
46
  justify-content: center;
47
+ gap: 8px;
 
48
  }
49
 
50
  .header-message h2 img {
51
+ width: 28px;
52
+ height: 28px;
53
  object-fit: contain;
54
  }
55
 
56
  .header-message p {
57
  margin: 0;
58
  color: #4a5568;
59
+ font-size: 12px;
60
+ line-height: 1.4;
61
  }
62
 
63
+ /* CHAT CONTAINER - Compact Card */
64
  .chat-container {
 
65
  width: 100%;
66
+ height: 500px;
67
  position: relative;
68
  background-color: white;
69
+ border-radius: 0 0 12px 12px;
70
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
71
  border: 1px solid rgba(0, 0, 0, 0.05);
72
+ border-top: none;
73
  overflow: hidden;
 
74
  }
75
 
76
  #anything-llm-embed-chat-container {
77
  position: relative !important;
78
  width: 100% !important;
79
  height: 100% !important;
 
80
  background-color: transparent !important;
81
  box-shadow: none !important;
82
  border: none !important;
 
91
  height: 100% !important;
92
  border: none !important;
93
  background-color: white !important;
 
94
  }
95
 
96
+ /* --- TABLET RESPONSIVENESS (Max Width 768px) --- */
97
+ @media screen and (max-width: 768px) {
98
  .chat-wrapper {
99
+ max-width: 100%;
100
  padding: 15px;
101
  }
102
 
 
 
 
 
 
 
 
 
103
  .chat-container {
104
+ height: 450px;
 
 
 
 
 
 
 
 
 
 
 
105
  }
106
 
107
  .header-message {
108
+ padding: 10px 14px;
 
109
  }
110
 
111
  .header-message h2 {
112
+ font-size: 16px;
113
  }
114
 
115
  .header-message h2 img {
116
+ width: 24px;
117
+ height: 24px;
118
  }
119
 
120
  .header-message p {
121
+ font-size: 11px;
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  }
123
  }
124
 
125
+ /* --- MOBILE RESPONSIVENESS (Max Width 480px) --- */
126
  @media screen and (max-width: 480px) {
127
  .chat-wrapper {
128
+ padding: 10px;
129
  }
130
 
131
+ .chat-container {
132
+ height: 400px;
133
+ border-radius: 0 0 8px 8px;
134
  }
135
 
136
  .header-message {
137
+ padding: 8px 12px;
138
+ border-radius: 8px 8px 0 0;
 
139
  }
140
 
141
  .header-message h2 {
142
+ font-size: 15px;
143
+ gap: 6px;
 
 
 
 
 
144
  }
145
 
146
  .header-message p {
147
+ font-size: 10px;
 
 
 
 
 
 
 
148
  }
 
 
 
 
 
 
 
 
 
 
149
  }
150
  </style>
151
  </head>