mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix: regions jumping around on Firefox
This commit is contained in:
1 parent
678877affe
commit
fc6fe83eb1
1 file changed
+8
-6
@@ -62,6 +62,13 @@
|
||||
}
|
||||
|
||||
$: notifications = prefs?.notifications ?? [];
|
||||
|
||||
const sortedRegions = $regions.regions.sort((regionA, regionB) => {
|
||||
if (regionA.disabled >= regionB.disabled) {
|
||||
return 1;
|
||||
}
|
||||
return -1;
|
||||
});
|
||||
</script>
|
||||
|
||||
<WizardStep>
|
||||
@@ -73,12 +80,7 @@
|
||||
<ul
|
||||
class="grid-box u-margin-block-start-16"
|
||||
style="--p-grid-item-size:12em; --p-grid-item-size-small-screens:12rem; --grid-gap: 1rem;">
|
||||
{#each $regions.regions.sort((regionA, regionB) => {
|
||||
if (regionA.disabled >= regionB.disabled) {
|
||||
return 1;
|
||||
}
|
||||
return -1;
|
||||
}) as region, index (region.$id)}
|
||||
{#each sortedRegions as region, index (region.$id)}
|
||||
<li>
|
||||
<RegionCard
|
||||
name="region"
|
||||
|
||||
Reference in new issue
Block a user