Fix room and nick dialog padding
This commit is contained in:
parent
d114857abd
commit
a2b9f57a09
3 changed files with 19 additions and 16 deletions
|
|
@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
- Improved editor key bindings
|
- Improved editor key bindings
|
||||||
- Slowed down room history download speed
|
- Slowed down room history download speed
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Spacing in some popups
|
||||||
|
|
||||||
## v0.1.0 - 2022-08-06
|
## v0.1.0 - 2022-08-06
|
||||||
|
|
||||||
Initial release
|
Initial release
|
||||||
|
|
|
||||||
|
|
@ -119,16 +119,16 @@ impl EuphRoom {
|
||||||
State::Normal => chat,
|
State::Normal => chat,
|
||||||
State::ChooseNick(ed) => Layer::new(vec![
|
State::ChooseNick(ed) => Layer::new(vec![
|
||||||
chat,
|
chat,
|
||||||
Float::new(Border::new(Background::new(
|
Float::new(Border::new(Background::new(VJoin::new(vec![
|
||||||
Padding::new(VJoin::new(vec![
|
Segment::new(Padding::new(Text::new("Choose nick")).horizontal(1)),
|
||||||
Segment::new(Text::new("Choose nick ")),
|
Segment::new(
|
||||||
Segment::new(
|
Padding::new(
|
||||||
ed.widget()
|
ed.widget()
|
||||||
.highlight(|s| Styled::new(s, euph::nick_style(s))),
|
.highlight(|s| Styled::new(s, euph::nick_style(s))),
|
||||||
),
|
)
|
||||||
]))
|
.left(1),
|
||||||
.left(1),
|
),
|
||||||
)))
|
]))))
|
||||||
.horizontal(0.5)
|
.horizontal(0.5)
|
||||||
.vertical(0.5)
|
.vertical(0.5)
|
||||||
.into(),
|
.into(),
|
||||||
|
|
|
||||||
|
|
@ -103,16 +103,16 @@ impl Rooms {
|
||||||
let room_style = ContentStyle::default().bold().blue();
|
let room_style = ContentStyle::default().bold().blue();
|
||||||
Layer::new(vec![
|
Layer::new(vec![
|
||||||
self.rooms_widget().await,
|
self.rooms_widget().await,
|
||||||
Float::new(Border::new(Background::new(
|
Float::new(Border::new(Background::new(VJoin::new(vec![
|
||||||
Padding::new(VJoin::new(vec![
|
Segment::new(Padding::new(Text::new("Connect to")).horizontal(1)),
|
||||||
Segment::new(Text::new("Connect to ")),
|
Segment::new(
|
||||||
Segment::new(HJoin::new(vec![
|
Padding::new(HJoin::new(vec![
|
||||||
Segment::new(Text::new(("&", room_style))),
|
Segment::new(Text::new(("&", room_style))),
|
||||||
Segment::new(ed.widget().highlight(|s| Styled::new(s, room_style))),
|
Segment::new(ed.widget().highlight(|s| Styled::new(s, room_style))),
|
||||||
])),
|
]))
|
||||||
]))
|
.left(1),
|
||||||
.left(1),
|
),
|
||||||
)))
|
]))))
|
||||||
.horizontal(0.5)
|
.horizontal(0.5)
|
||||||
.vertical(0.5)
|
.vertical(0.5)
|
||||||
.into(),
|
.into(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue