Spaces:
Running
Running
Keep Multimodal Leaderboard at top level with Document indented below
Browse filesHide the Multimodal section header and use CSS to indent Document
under Multimodal Leaderboard, matching the original sidebar hierarchy.
app.py
CHANGED
|
@@ -36,6 +36,16 @@ st.markdown("""
|
|
| 36 |
border-left: 2px solid rgba(129, 150, 64, 0.3);
|
| 37 |
margin-left: 0.75rem;
|
| 38 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
</style>
|
| 40 |
""", unsafe_allow_html=True)
|
| 41 |
|
|
|
|
| 36 |
border-left: 2px solid rgba(129, 150, 64, 0.3);
|
| 37 |
margin-left: 0.75rem;
|
| 38 |
}
|
| 39 |
+
|
| 40 |
+
/* Hide the Multimodal section header */
|
| 41 |
+
ul[data-testid="stSidebarNavItems"] > div:nth-child(4) > header {
|
| 42 |
+
display: none;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
/* Indent Document under Multimodal Leaderboard */
|
| 46 |
+
ul[data-testid="stSidebarNavItems"] > div:nth-child(4) > li:nth-child(3) {
|
| 47 |
+
padding-left: 2rem;
|
| 48 |
+
}
|
| 49 |
</style>
|
| 50 |
""", unsafe_allow_html=True)
|
| 51 |
|