chore: move loading styles to variant into the component
This commit is contained in:
parent
4134fcbd75
commit
76814a2d3f
@ -52,7 +52,7 @@
|
|||||||
<ProjectsNavigationWrapper/>
|
<ProjectsNavigationWrapper/>
|
||||||
|
|
||||||
<template #fallback>
|
<template #fallback>
|
||||||
<Loading class="navigation-loader"/>
|
<Loading variant="small"/>
|
||||||
</template>
|
</template>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
|
|
||||||
@ -128,17 +128,4 @@ const menuActive = computed(() => baseStore.menuActive)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation-loader {
|
|
||||||
min-width: 100%;
|
|
||||||
height: 150px;
|
|
||||||
|
|
||||||
&.is-loading::after {
|
|
||||||
width: 3rem;
|
|
||||||
height: 3rem;
|
|
||||||
top: calc(50% - 1.5rem);
|
|
||||||
left: calc(50% - 1.5rem);
|
|
||||||
border-width: 3px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="loader-container is-loading"></div>
|
<div class="loader-container is-loading" :class="{'is-small': variant === 'small'}"></div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
@ -8,6 +8,14 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
const {
|
||||||
|
variant = 'default',
|
||||||
|
} = defineProps<{
|
||||||
|
variant: 'default' | 'small'
|
||||||
|
}>()
|
||||||
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.loader-container {
|
.loader-container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -20,5 +28,18 @@ export default {
|
|||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.is-small {
|
||||||
|
min-width: 100%;
|
||||||
|
height: 150px;
|
||||||
|
|
||||||
|
&.is-loading::after {
|
||||||
|
width: 3rem;
|
||||||
|
height: 3rem;
|
||||||
|
top: calc(50% - 1.5rem);
|
||||||
|
left: calc(50% - 1.5rem);
|
||||||
|
border-width: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
Loading…
x
Reference in New Issue
Block a user