usability fixes

This commit is contained in:
2026-06-25 01:45:23 +02:00
parent 78f64c0af6
commit 3023bc313c
5 changed files with 11 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

View File

@@ -48,6 +48,7 @@ class _MoreScreenState extends State<MoreScreen> {
Navigator.of(dialogContext).pop();
_prefs.clear();
authState.refresh();
context.go("/");
},
),
],
@@ -145,4 +146,4 @@ class _NavOptionTile extends StatelessWidget {
onTap: onTap,
);
}
}
}

View File

@@ -33,9 +33,14 @@ class SplashProvider extends ChangeNotifier {
try {
final buildNumber = appBuildNumber;
final response = await _http.getRaw(
'/public/app-version/check/app?currentBuildNumber=$buildNumber',
);
String url;
if (kIsWeb) {
url = '/public/app-version/check/web?currentBuildNumber=$buildNumber';
} else {
url = '/public/app-version/check/app?currentBuildNumber=$buildNumber';
}
final response = await _http.getRaw(url);
if (response.statusCode == 204) {
_status = SplashCheckStatus.noUpdate;

View File

@@ -13,7 +13,7 @@ http {
index index.html;
# Security headers
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self'; object-src 'none'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'" always;
add_header Content-Security-Policy "connect-src 'self'; object-src 'none'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;