fix: text disappearing when moving sliders

This commit is contained in:
19MisterX98 2025-05-12 16:15:06 +02:00 committed by GitHub
parent b0f3c82826
commit 98aa83893b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 14 deletions

View file

@ -770,8 +770,7 @@ impl cosmic::Application for Audio {
slider(0.0..=150.0, self.output_volume, Message::SetOutputVolume)
.width(Length::FillPortion(5))
.breakpoints(&[100.]),
text(&self.output_volume_text)
.size(16)
container(text(&self.output_volume_text).size(16))
.width(Length::FillPortion(1))
.align_x(Alignment::End)
]
@ -792,8 +791,7 @@ impl cosmic::Application for Audio {
slider(0.0..=150.0, self.input_volume, Message::SetInputVolume)
.width(Length::FillPortion(5))
.breakpoints(&[100.]),
text(&self.input_volume_text)
.size(16)
container(text(&self.input_volume_text).size(16))
.width(Length::FillPortion(1))
.align_x(Alignment::End)
]