Skip to content

Commit b5fb6bc

Browse files
committed
Fix intro page layout
1 parent ea2d3a9 commit b5fb6bc

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

streamlit/views/book_intro.py

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
1-
import streamlit as st
21
from view_groups import groups
32

3+
import streamlit as st
4+
5+
st.markdown(
6+
"""
7+
<style>
8+
div[data-testid="stVerticalBlockBorderWrapper"] {
9+
height: 100%;
10+
display: flex;
11+
flex-direction: column;
12+
}
13+
div[data-testid="stVerticalBlockBorderWrapper"] > div:first-child {
14+
height: 100%;
15+
display: flex;
16+
flex-direction: column;
17+
align-items: flex-start;
18+
}
19+
20+
div[data-testid="stTooltipHoverTarget"] {
21+
justify-content: flex-start !important;
22+
}
23+
</style>
24+
""",
25+
unsafe_allow_html=True,
26+
)
27+
428
st.markdown(
529
"""
630
**Welcome to the Databricks Apps Cookbook!**
@@ -19,7 +43,6 @@
1943

2044
for i in range(0, len(groups), 4):
2145
row_groups = groups[i : i + 4]
22-
# Always create 4 columns
2346
cols = st.columns(4)
2447
for col, group in zip(cols, row_groups):
2548
with col:

0 commit comments

Comments
 (0)