uumerrr684 commited on
Commit
b2c0738
·
verified ·
1 Parent(s): d7b0863

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -24
app.py CHANGED
@@ -58,32 +58,10 @@ st.markdown("""
58
  backdrop-filter: blur(10px);
59
  }
60
 
61
- /* Chat messages styling for mobile */
62
- .stChatMessage {
63
- background: rgba(255, 255, 255, 0.95);
64
- border-radius: 15px;
65
- margin: 0.5rem 0;
66
- padding: 1rem;
67
- box-shadow: 0 2px 10px rgba(0,0,0,0.1);
68
- }
69
-
70
- /* User messages - right aligned */
71
- .stChatMessage[data-testid="user-message"] {
72
- background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
73
- color: white;
74
- margin-left: 15%;
75
- }
76
-
77
- /* Assistant messages - left aligned */
78
- .stChatMessage[data-testid="assistant-message"] {
79
- background: rgba(255, 255, 255, 0.98);
80
- color: #333;
81
- margin-right: 15%;
82
- }
83
-
84
  /* Mobile text sizing */
85
  .stMarkdown {
86
- font-size: 14px;
 
87
  }
88
 
89
  h1 {
@@ -114,6 +92,32 @@ st.markdown("""
114
  .stChatInput input {
115
  font-size: 16px; /* Prevents zoom on iOS */
116
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  }
118
 
119
  /* Extra small screens (iPhone 5, old phones) */
 
58
  backdrop-filter: blur(10px);
59
  }
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  /* Mobile text sizing */
62
  .stMarkdown {
63
+ font-size: 14px !important;
64
+ color: #333 !important;
65
  }
66
 
67
  h1 {
 
92
  .stChatInput input {
93
  font-size: 16px; /* Prevents zoom on iOS */
94
  }
95
+
96
+ /* Chat messages - SIMPLE styling that works */
97
+ [data-testid="chat-message-user"] {
98
+ background: #007bff !important;
99
+ color: white !important;
100
+ border-radius: 10px !important;
101
+ padding: 10px !important;
102
+ margin: 5px 0 !important;
103
+ }
104
+
105
+ [data-testid="chat-message-user"] .stMarkdown {
106
+ color: white !important;
107
+ }
108
+
109
+ [data-testid="chat-message-assistant"] {
110
+ background: white !important;
111
+ color: #333 !important;
112
+ border-radius: 10px !important;
113
+ padding: 10px !important;
114
+ margin: 5px 0 !important;
115
+ border: 1px solid #ddd !important;
116
+ }
117
+
118
+ [data-testid="chat-message-assistant"] .stMarkdown {
119
+ color: #333 !important;
120
+ }
121
  }
122
 
123
  /* Extra small screens (iPhone 5, old phones) */