@@ -53,29 +53,29 @@ def render_sidebar():
5353 # Simple clean profile display with Dynamic Picture
5454 pic = st .session_state .get ('profile_picture' )
5555
56- avatar_html = ""
56+ # Flattened HTML to prevent Markdown code block bugs
5757 if pic :
58- avatar_html = f"""
59- <div style="width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid #3B82F6;">
60- <img src="{ pic } " style="width: 100%; height: 100%; object-fit: cover;">
61- </div>
62- """
58+ avatar_html = (
59+ f' <div style="width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid #3B82F6;">'
60+ f' <img src="{ pic } " style="width: 100%; height: 100%; object-fit: cover;">'
61+ f' </div>'
62+ )
6363 else :
64- avatar_html = f"""
65- <div style="background: #3B82F6; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white;">
66- { username [0 ].upper ()}
67- </div>
68- """
64+ avatar_html = (
65+ f' <div style="background: #3B82F6; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white;">'
66+ f' { username [0 ].upper ()} '
67+ f' </div>'
68+ )
6969
7070 st .markdown (f"""
71- <div style="background-color: rgba(255, 255, 255, 0.05); padding: 10px; border-radius: 8px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px;">
72- { avatar_html }
73- <div>
74- <div style="font-weight: 600; font-size: 14px; color: #F1F5F9;">{ username } </div>
75- <div style="font-size: 12px; color: #4ADE80;">● Online</div>
76- </div>
77- </div>
78- """ , unsafe_allow_html = True )
71+ <div style="background-color: rgba(255, 255, 255, 0.05); padding: 10px; border-radius: 8px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px;">
72+ { avatar_html }
73+ <div>
74+ <div style="font-weight: 600; font-size: 14px; color: #F1F5F9;">{ username } </div>
75+ <div style="font-size: 12px; color: #4ADE80;">● Online</div>
76+ </div>
77+ </div>
78+ """ , unsafe_allow_html = True )
7979
8080 # 3. Navigation Menu
8181 nav_options = [
0 commit comments