Calculate apps view item width early to avoid flickering
This commit is contained in:
@@ -250,6 +250,8 @@ function setItemWidth() {
|
||||
}
|
||||
|
||||
onActivated(async () => {
|
||||
setItemWidth();
|
||||
|
||||
await refreshApps();
|
||||
ready.value = true;
|
||||
|
||||
@@ -264,7 +266,6 @@ onActivated(async () => {
|
||||
|
||||
refreshInterval = setInterval(refreshApps, 5000);
|
||||
|
||||
setItemWidth();
|
||||
window.addEventListener('resize', setItemWidth);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user