Move absolute positioning to animation class

- remove class from index
- remove class from list
- remove class from details
- add positionAbsolute to animation classes
parent b9ca78b3
...@@ -199,10 +199,7 @@ export default { ...@@ -199,10 +199,7 @@ export default {
</script> </script>
<template> <template>
<div <div v-gl-resize-observer="handleResize" class="my-3 w-100 slide-enter-to-element">
v-gl-resize-observer="handleResize"
class="my-3 position-absolute w-100 slide-enter-to-element"
>
<div class="d-flex my-3 align-items-center"> <div class="d-flex my-3 align-items-center">
<h4> <h4>
<gl-sprintf :message="s__('ContainerRegistry|%{imageName} tags')"> <gl-sprintf :message="s__('ContainerRegistry|%{imageName} tags')">
......
...@@ -3,7 +3,7 @@ export default {}; ...@@ -3,7 +3,7 @@ export default {};
</script> </script>
<template> <template>
<div class="position-relative"> <div>
<transition name="slide"> <transition name="slide">
<router-view /> <router-view />
</transition> </transition>
......
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
</script> </script>
<template> <template>
<div class="position-absolute w-100 slide-enter-from-element"> <div class="w-100 slide-enter-from-element">
<gl-empty-state <gl-empty-state
v-if="config.characterError" v-if="config.characterError"
:title="s__('ContainerRegistry|Docker connection error')" :title="s__('ContainerRegistry|Docker connection error')"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
.slide-enter-from-element { .slide-enter-from-element {
&.slide-enter, &.slide-enter,
&.slide-leave-to { &.slide-leave-to {
position: absolute;
transform: translateX(-150%); transform: translateX(-150%);
} }
} }
...@@ -22,6 +23,7 @@ ...@@ -22,6 +23,7 @@
.slide-enter-to-element { .slide-enter-to-element {
&.slide-enter, &.slide-enter,
&.slide-leave-to { &.slide-leave-to {
position: absolute;
transform: translateX(150%); transform: translateX(150%);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment