Fix offline mode toggle and add network verification
- Change OfflinePlaceholder icon to use offline.svg instead of Power icon - Add flex-shrink protection to Toggle component to prevent collapsing - Add network verification when disabling offline mode: - Check network connectivity before switching to online - Show semi-transparent overlay during check - Revert to offline and show toast if no internet available - Add check_network Tauri command to verify connectivity - Add i18n strings for noNetworkToast and checkingNetwork (en/es)
This commit is contained in:
1 parent
5c1fb23899
commit
373e61f0bd
8 files changed
+95
-18
No files matched your search
@@ -21,12 +21,14 @@
|
||||
.toggle {
|
||||
position: relative;
|
||||
width: 44px;
|
||||
min-width: 44px;
|
||||
height: 24px;
|
||||
border-radius: 9999px;
|
||||
border: none;
|
||||
background-color: #333333;
|
||||
cursor: pointer;
|
||||
transition: background-color 150ms ease;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.toggle.enabled {
|
||||
|
||||
Reference in new issue
Block a user