Skip to content

Commit

Permalink
Add scroll to top element (#2677)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Nov 13, 2024
1 parent 0629657 commit f6a72dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/js/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
</TabPanel>
</TabPanels>
</Tabs>
<ScrollTop :threshold="50" />
</template>
<script setup lang="ts">
import Tabs from "primevue/tabs";
Expand All @@ -39,4 +40,11 @@ import Toolbar from "primevue/toolbar";
import AllSettings from "@/components/settings/AllSettings.vue";
import EasySettings from "@/components/settings/EasySettings.vue";
import OpenLeftMenu from "@/components/headers/OpenLeftMenu.vue";
import ScrollTop from "primevue/scrolltop";
</script>
<style lang="css">
/* Kill the border of ScrollTop */
.p-scrolltop {
border: none;
}
</style>

0 comments on commit f6a72dd

Please sign in to comment.