Skip to content

Commit

Permalink
fix: 로딩 화면 드랜지션에서의 요소 충돌 현상 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
lavi27 committed Jan 19, 2024
1 parent f68cf8e commit 49e8118
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 5 additions & 4 deletions assets/styles/layouts/spinerProvider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
}

.state_wrap {
// position: absolute;
width: 100%;
position: absolute;
left: 50%;
top: 30%;
transform: translateX(-50%);

}

.state {
width: 100%;
height: 100px;
// position: absolute;
display: flex;
align-items: center;
justify-content: center;
Expand Down
4 changes: 2 additions & 2 deletions layouts/spinerWrap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { loadingState } = useLoadingState()
</div>

<div v-else-if="loadingState === LOADING_STATE.Connecting" class="state_wrap">
<div class="state h-[500px]">
<div class="state">
<h3 class="pb-8 text-2xl">
<!-- 불러오는 중 -->
{{ $t('common.loading') }}
Expand All @@ -24,7 +24,7 @@ const { loadingState } = useLoadingState()
</div>

<div v-else-if="loadingState === LOADING_STATE.Failed" class="state_wrap">
<div class="state h-[500px]">
<div class="state">
<h4>
<!-- 현재 응답이 지연되고 있습니다. -->
{{ $t('common.ratelimit') }}
Expand Down
2 changes: 0 additions & 2 deletions pages/dashboard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ onMounted(async () => {
checkPush(Number(route.query.id))
}, 5000)
await wait(200)
resizeAlerts()
loadingSuccess()
} catch (e) {}
Expand Down

0 comments on commit 49e8118

Please sign in to comment.