CCockrum commited on
Commit
5ce8be3
·
verified ·
1 Parent(s): 3cc060e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -3
app.py CHANGED
@@ -106,9 +106,41 @@ st.markdown("🌌 *Powered by Hugging Face & NASA APIs!*")
106
  # Custom CSS for chat styling
107
  st.markdown("""
108
  <style>
109
- .user-msg { background-color: #ADD8E6; padding: 10px; border-radius: 10px; margin-bottom: 5px; }
110
- .assistant-msg { background-color: #F0F0F0; padding: 10px; border-radius: 10px; margin-bottom: 5px; }
111
- @media (max-width: 600px) { .user-msg, .assistant-msg { font-size: 16px; } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  </style>
113
  """, unsafe_allow_html=True)
114
 
 
106
  # Custom CSS for chat styling
107
  st.markdown("""
108
  <style>
109
+ /* Style for chat messages */
110
+ .user-msg {
111
+ background-color: #0078D7; /* Dark Blue */
112
+ color: white; /* White text for contrast */
113
+ padding: 10px;
114
+ border-radius: 10px;
115
+ margin-bottom: 5px;
116
+ width: fit-content;
117
+ max-width: 80%;
118
+ }
119
+
120
+ .assistant-msg {
121
+ background-color: #333333; /* Dark Gray */
122
+ color: white; /* White text for contrast */
123
+ padding: 10px;
124
+ border-radius: 10px;
125
+ margin-bottom: 5px;
126
+ width: fit-content;
127
+ max-width: 80%;
128
+ }
129
+
130
+ /* Center messages for better appearance */
131
+ .container {
132
+ display: flex;
133
+ flex-direction: column;
134
+ align-items: flex-start;
135
+ }
136
+
137
+ /* Adjust messages on mobile */
138
+ @media (max-width: 600px) {
139
+ .user-msg, .assistant-msg {
140
+ font-size: 16px;
141
+ max-width: 100%;
142
+ }
143
+ }
144
  </style>
145
  """, unsafe_allow_html=True)
146