In the attached design I have created three columns in the container but I don’t know how to merge the columns into single column in only second row.
1 Like
Would love to get an update on this!
Nested columns aren’t supported, unfortunately. However, I see on GitHub that an update to allow one level of nesting was just merged so maybe this will be possible very, very soon.
streamlit:develop
← streamlit:columns-inside-columns
opened 12:13PM - 11 Jan 23 UTC
<!--
Before contributing (PLEASE READ!)
⚠️ If your contribution is more than… a few lines of code, then prior to starting to code on it please post in the issue saying you want to volunteer, then wait for a positive response. And if there is no issue for it yet, create it first.
This helps make sure:
1. Two people aren't working on the same thing
2. This is something Streamlit's maintainers believe should be implemented/fixed
3. Any API, UI, or deeper architectural changes that need to be implemented have been fully thought through by Streamlit's maintainers
4. Your time is well spent!
More information in our wiki: https://github.com/streamlit/streamlit/wiki/Contributing
-->
## 📚 Context
_Please describe the project or issue background here_
- What kind of change does this PR introduce?
- [ ] Bugfix
- [x] Feature
- [ ] Refactoring
- [ ] Other, please describe:
## 🧠 Description of Changes
- _Add bullet points summarizing your changes here_
- This PR allows columns nesting, but only 1 level of nesting is allowed
- Columns nesting inside sidebar is disallowed
- Expanders nesting is disallowed
- Appropriate exception messages are shown for each case
- `st.columns` docs are updated, so we informed the users will be informed about the change
- [ ] This is a breaking API change
- [ ] This is a visible (user-facing) change
**Revised:**
_Insert screenshot of your updated UI/code here_
**Current:**
_Insert screenshot of existing UI/code here_
## 🧪 Testing Done
- [] Screenshots included
- [x] Added/Updated unit tests
- [x] Added/Updated e2e tests
## 🌐 References
_Does this depend on other work, documents, or tickets?_
- **Issue**: Closes [Issue-#5284](https://github.com/streamlit/streamlit/issues/5284)
---
**Contribution License Agreement**
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.