Przeglądaj źródła

remove padding from content in slideshow example

Rodja Trappe 1 rok temu
rodzic
commit
c21da76480
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      examples/slideshow/main.py

+ 2 - 0
examples/slideshow/main.py

@@ -4,6 +4,8 @@ from pathlib import Path
 from nicegui import app, ui
 from nicegui.events import KeyEventArguments
 
+ui.query('.nicegui-content').classes('p-0')  # remove padding from the main content
+
 folder = Path(__file__).parent / 'slides'  # image source: https://pixabay.com/
 files = sorted(f.name for f in folder.glob('*.jpg'))
 index = 0