try to fix manifest issues and create responsive app
Browse files
app/main.py
CHANGED
|
@@ -433,7 +433,8 @@ def main(page: ft.Page):
|
|
| 433 |
ft.TextButton("Volver", on_click=lambda _: page.go("/"))
|
| 434 |
], spacing=15),
|
| 435 |
padding=20,
|
| 436 |
-
|
|
|
|
| 437 |
alignment=ft.alignment.top_center,
|
| 438 |
expand=True
|
| 439 |
)
|
|
|
|
| 433 |
ft.TextButton("Volver", on_click=lambda _: page.go("/"))
|
| 434 |
], spacing=15),
|
| 435 |
padding=20,
|
| 436 |
+
# Para compatibilidad con versiones antiguas, usamos width dinámico o restringido
|
| 437 |
+
width=800 if page.width > 800 else None,
|
| 438 |
alignment=ft.alignment.top_center,
|
| 439 |
expand=True
|
| 440 |
)
|
assets/manifest.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "makerspacepage",
|
| 3 |
+
"short_name": "makerspace",
|
| 4 |
+
"icons": [
|
| 5 |
+
{
|
| 6 |
+
"src": "icon192x192.png",
|
| 7 |
+
"sizes": "192x192",
|
| 8 |
+
"type": "image/png",
|
| 9 |
+
"purpose": "any maskable"
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"src": "icon-512x512.png",
|
| 13 |
+
"sizes": "512x512",
|
| 14 |
+
"type": "image/png",
|
| 15 |
+
"purpose": "any maskable"
|
| 16 |
+
}
|
| 17 |
+
],
|
| 18 |
+
"theme_color": "#1a1c1e",
|
| 19 |
+
"background_color": "#1a1c1e",
|
| 20 |
+
"display": "standalone",
|
| 21 |
+
"start_url": ".",
|
| 22 |
+
"id": "/"
|
| 23 |
+
}
|
assets/{favicon-16x16.png → web/favicon-16x16.png}
RENAMED
|
File without changes
|
assets/{favicon-32x32.png → web/favicon-32x32.png}
RENAMED
|
File without changes
|
assets/{favicon.ico → web/favicon.ico}
RENAMED
|
File without changes
|