diff --git a/TalkHeal.py b/TalkHeal.py
index 2876716..02ba9ea 100644
--- a/TalkHeal.py
+++ b/TalkHeal.py
@@ -95,7 +95,11 @@ def get_tone_prompt():
else:
with main_area:
render_header()
- st.subheader(f"🗣️ Current Chatbot Tone: **{st.session_state['selected_tone']}**")
+ st.markdown(f"""
+
+
🗣️ Current Chatbot Tone: {st.session_state['selected_tone']}
+
+""", unsafe_allow_html=True)
render_chat_interface()
handle_chat_input(model, system_prompt=get_tone_prompt())
diff --git a/components/sidebar.py b/components/sidebar.py
index bf79dd8..e66e115 100644
--- a/components/sidebar.py
+++ b/components/sidebar.py
@@ -130,9 +130,19 @@ def render_sidebar():
st.session_state.active_conversation = i
st.rerun()
with col2:
- if st.button("🗑️", key=f"delete_{i}", type="primary"):
- st.session_state.delete_candidate = i
- st.rerun()
+ if convo["messages"]:
+ if st.button("🗑️", key=f"delete_{i}", type="primary", use_container_width=True):
+ st.session_state.delete_candidate = i
+ st.rerun()
+ else:
+ st.button(
+ "🗑️",
+ key=f"delete_{i}",
+ type="primary",
+ use_container_width=True,
+ disabled=not convo["messages"] # Disable if it's a new/empty conversation
+ )
+
else:
st.warning(
diff --git a/css/styles.py b/css/styles.py
index b4ee017..525f831 100644
--- a/css/styles.py
+++ b/css/styles.py
@@ -498,7 +498,7 @@ def apply_custom_css():
.stTextInput > div > div > input,
.stTextArea > div > div > textarea {{
background: var(--glass-effect) !important;
- background-color: #FFFFD0 !important;
+ background-color: #FFDDEE !important;
border: 2px solid var(--border) !important;
border-radius: var(--radius) !important;
font-size: 1em !important;
diff --git a/streamlit.toml b/streamlit.toml
index 0a23a05..9aa7542 100644
--- a/streamlit.toml
+++ b/streamlit.toml
@@ -1 +1 @@
-GEMINI_API_KEY = "AIzaSyDsLJgA58LvgFtnUdVBLFb08GZQV0wXYjQ"
+GEMINI_API_KEY = "AIzaSyDsLJgA58LvgFtnUdVBLFb08GZQV0wXYjQ"
\ No newline at end of file