fix autoplay padding

This commit is contained in:
dmunozv04
2024-06-21 16:29:17 +02:00
parent 338e0479ba
commit cfef219d32
2 changed files with 12 additions and 5 deletions

View File

@@ -363,3 +363,9 @@ MigrationScreen {
width: 1fr;
content-align: center middle;
}
/* Autoplay */
#autoplay-container{
padding: 1;
height: auto;
}

View File

@@ -864,11 +864,12 @@ class AutoPlayManager(Vertical):
classes="subtitle",
id="autoplay-subtitle",
)
yield Checkbox(
value=self.config.auto_play,
id="autoplay-switch",
label="Enable autoplay",
)
with Horizontal(id="autoplay-container"):
yield Checkbox(
value=self.config.auto_play,
id="autoplay-switch",
label="Enable autoplay",
)
@on(Checkbox.Changed, "#autoplay-switch")
def changed_skip(self, event: Checkbox.Changed):