Skip to content

Commit 0b17d52

Browse files
committed
Refine title and GitHub link layout
Signed-off-by: lyndanajjar <lyndanajjar15@gmail.com>
1 parent 6842399 commit 0b17d52

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

src/ChatUI_streamlit/app.py

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,21 @@
55
import os
66
import time
77

8+
9+
810
# App title
911
if 'page_config_set' not in st.session_state:
1012
st.set_page_config(page_title="RTDIP Pipeline Chatbot")
1113
st.session_state['page_config_set'] = True
12-
# Use HTML/CSS to position the title at the top left
14+
15+
# Use HTML/CSS to position the title and GitHub link on the same line
1316
st.markdown(
1417
'''
15-
<style>
16-
.title {
17-
margin-top: -70px;
18-
margin-left: -180px;
19-
}
20-
</style>
21-
<div class="title"><h2>RTDIP Pipeline Chatbot</h2></div>
22-
''',unsafe_allow_html=True)
23-
#st.title('RTDIP Pipeline Chatbot')
24-
# Git repository link (replace with your repository URL)
25-
git_repo_link = "[![Git Repository](https://img.shields.io/badge/GitHub-Repo-blue?logo=github)](https://github.com/rtdip/core/tree/develop)"
26-
st.markdown(git_repo_link, unsafe_allow_html=True)
18+
<div style="display: flex; justify-content: space-between; align-items: center;">
19+
<div style="margin-top: -70px; margin-left: -180px;"><h2>RTDIP Pipeline Chatbot</h2></div>
20+
<div style="margin-top: -70px; "><a href="https://github.com/rtdip/core/tree/develop"><img src="https://img.shields.io/badge/GitHub-Repo-blue?logo=github"></a></div>
21+
</div>
22+
''', unsafe_allow_html=True)
2723

2824

2925
# Replicate Credentials

0 commit comments

Comments
 (0)