Skip to content
Discussion options

You must be logged in to vote

First off, this is looking good; it's obvious you're getting a great grasp of how to build with Textual.

Taking the AWSMonitorHeader in isolation, I see a few things going on that, if tackled, might make this easier to reason about.

The first thing I'd suggest is that you're wrapping widgets in containers more often than you really need to. If we take your AWSMonitorHeader widget, you compose each of the sub-widgets inside individual containers; that shouldn't really be necessary as each one of them is going to be a container anyway. Given that Container is width and height 1fr out of the box, you're always going to be fighting that. You could of course style that in a different way, but …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@evanpolster
Comment options

@davep
Comment options

Answer selected by evanpolster
@evanpolster
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@davep
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants