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; width: 1fr;
content-align: center middle; content-align: center middle;
} }
/* Autoplay */
#autoplay-container{
padding: 1;
height: auto;
}

View File

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