Update app.py
Browse files
app.py
CHANGED
@@ -146,7 +146,7 @@ custom_css = """
|
|
146 |
.chatbot {
|
147 |
border: none; /* Remove the blue border */
|
148 |
border-radius: 5px;
|
149 |
-
padding:
|
150 |
margin-bottom: 15px;
|
151 |
}
|
152 |
.button-row {
|
@@ -165,14 +165,18 @@ custom_css = """
|
|
165 |
border: none !important;
|
166 |
box-shadow: none !important;
|
167 |
}
|
168 |
-
/* Adjust padding and
|
169 |
.chatbot .message-content {
|
170 |
-
padding: 10px
|
171 |
-
margin-bottom:
|
|
|
|
|
172 |
}
|
173 |
.chatbot .message-bubble {
|
174 |
background-color: #FFFFFF; /* Ensure background is white */
|
175 |
border-radius: 8px; /* Rounded corners for messages */
|
|
|
|
|
176 |
}
|
177 |
"""
|
178 |
|
|
|
146 |
.chatbot {
|
147 |
border: none; /* Remove the blue border */
|
148 |
border-radius: 5px;
|
149 |
+
padding: 5px; /* Reduce padding around the chat area */
|
150 |
margin-bottom: 15px;
|
151 |
}
|
152 |
.button-row {
|
|
|
165 |
border: none !important;
|
166 |
box-shadow: none !important;
|
167 |
}
|
168 |
+
/* Adjust padding, margin, and width for chat bubbles */
|
169 |
.chatbot .message-content {
|
170 |
+
padding: 5px 10px; /* Smaller padding for better sizing */
|
171 |
+
margin-bottom: 8px; /* Space between messages */
|
172 |
+
max-width: 70%; /* Restrict maximum width for better appearance */
|
173 |
+
word-wrap: break-word; /* Ensure text wraps properly */
|
174 |
}
|
175 |
.chatbot .message-bubble {
|
176 |
background-color: #FFFFFF; /* Ensure background is white */
|
177 |
border-radius: 8px; /* Rounded corners for messages */
|
178 |
+
box-sizing: border-box; /* Ensure padding is included in width */
|
179 |
+
display: inline-block; /* Align the bubble content properly */
|
180 |
}
|
181 |
"""
|
182 |
|