Dheepak Krishnamurthy
Dheepak Krishnamurthy
Are the tests failing locally for you as well, or is it just failing on GitHub Actions?
Relevant issue for Kitty: https://github.com/kovidgoyal/kitty/issues/3810 PS: @kovidgoyal thank you for making and maintaining Kitty (and Calibre)!
Interesting. It seems like crossterm supports it as of the latest release: https://github.com/crossterm-rs/crossterm/blob/99fe255f33f774f04c09755572503349c915112b/CHANGELOG.md#L10-L14 I haven't checked the other backends.
I was planning to open an issue like this after working on the weights. I can take this.
Pop up in the center: ```rust let area = f.size(); let vertical_center = Layout::vertical([Percentage(50)]) .flex(Flex::Center) .split(area); let center = Layout::horizontal([Percentage(50)]) .flex(Flex::Center) .split(vertical_center[0]); for b in center.iter() { f.render_widget(Block::bordered().title("centered"), *b); }...
Popup message prompt: ```rust let area = f.size(); let [center] = area.split(&Layout::vertical([Percentage(75)]).flex(Flex::Center)); let [message, prompt] = center.split( &Layout::vertical([Proportional(1), Length(3)]) .margin(2) .flex(Flex::Center), ); f.render_widget(Block::bordered().title("message"), message); f.render_widget(Block::bordered().title("prompt"), prompt); ``` ```plain ┌f.size()─────────────────────────────────┐ │...
This page has a number of modern CSS layouts: https://1linelayouts.glitch.me/ I think having a documentation page like this with commonly used layouts would be nice.
Thanks for the PR! I also tend to have this in almost every application, and I believe this is a good candidate for inclusion. There is already a `inner` method:...
Alternative to explicit `MinMax` constraint is to dynamically create different layouts based on your requirements. For example, this: ```rust let area = frame.size(); let [middle] = if area.width > 40...
CSS allows `minmax(150px, 25%)` which would be awesome to do but that's probably a taffy feature.