Replies: 1 comment
-
| 
         By default,  To get what you seem to be looking for, you would style them to be  from textual.app import App, ComposeResult
from textual.containers import VerticalScroll, Horizontal
from textual.widgets import Header, Footer, Label
class MainScreen(App):
    CSS = """
    Horizontal {
        height: auto;
    }
    """
    def compose(self) -> ComposeResult:
        """Create child widgets for the app."""
        yield Header()
        yield Footer()
        with VerticalScroll():
            for i in range(13):
                with Horizontal():
                    yield Label(f"{i}. lorem ")
                    yield Label("-> ")
                    yield Label("ipsum")
            yield Label("dolor")
            yield Label("dolor")
            yield Label("dolor")
            yield Label("dolor")
if __name__ == "__main__":
    app = MainScreen()
    app.run() | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Thank you for the great project. I'm trying the below simple app with nested containers/layouts but it doesn't seem to be laying out correctly. I think it's a relatively straightforward ui layout so I suspect it's a bug. Please share if any thoughts
Versions
Python
Beta Was this translation helpful? Give feedback.
All reactions