Add gap for wide screens

pull/4755/head^2
Cagatay Civici 2023-11-02 14:29:09 +03:00
parent 1d365fd480
commit a0f5dd6aa2
2 changed files with 24 additions and 5 deletions

View File

@ -4,7 +4,7 @@
</DocSectionText>
<div class="card flex flex-column align-items-center">
<p>Scroll down the page to display the ScrollTop component.</p>
<i class="pi pi-angle-down fadeout animation-duration-1000 animation-iteration-infinite" style="fontsize: 2rem"></i>
<i class="pi pi-angle-down fadeout animation-duration-1000 animation-iteration-infinite" style="fontsize: 2rem; margin-bottom: 30rem"></i>
<ScrollTop />
</div>
<DocSectionCode :code="code" />

View File

@ -16,7 +16,7 @@
:threshold="100"
icon="pi pi-arrow-up"
:pt="{
root: 'w-2rem h-2rem border-round-sm bg-primary hover:bg-primary',
root: 'w-2rem h-2rem border-round-sm bg-primary',
icon: {
class: 'text-base'
}
@ -33,7 +33,26 @@ export default {
return {
code: {
basic: `
<ScrollTop target="parent" :threshold="100" icon="pi pi-arrow-up" />
<ScrollPanel style="width: 250px; height: 200px">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae et leo duis ut diam. Ultricies mi quis hendrerit dolor magna eget est lorem. Amet consectetur adipiscing
elit ut. Nam libero justo laoreet sit amet. Pharetra massa massa ultricies mi quis hendrerit dolor magna. Est ultricies integer quis auctor elit sed vulputate. Consequat ac felis donec et. Tellus orci ac auctor augue mauris. Semper
feugiat nibh sed pulvinar proin gravida hendrerit lectus a. Tincidunt arcu non sodales neque sodales. Metus aliquam eleifend mi in nulla posuere sollicitudin aliquam ultrices. Sodales ut etiam sit amet nisl purus. Cursus sit amet
dictum sit amet. Tristique senectus et netus et malesuada fames ac turpis egestas. Et tortor consequat id porta nibh venenatis cras sed. Diam maecenas ultricies mi eget mauris. Eget egestas purus viverra accumsan in nisl nisi.
Suscipit adipiscing bibendum est ultricies integer. Mattis aliquam faucibus purus in massa tempor nec.
</p>
<ScrollTop
target="parent"
:threshold="100"
icon="pi pi-arrow-up"
:pt="{
root: 'w-2rem h-2rem border-round-sm bg-primary',
icon: {
class: 'text-base'
}
}"
/>
</ScrollPanel>
`,
options: `
<template>
@ -51,7 +70,7 @@ export default {
:threshold="100"
icon="pi pi-arrow-up"
:pt="{
root: 'w-2rem h-2rem border-round-sm bg-primary hover:bg-primary',
root: 'w-2rem h-2rem border-round-sm bg-primary',
icon: {
class: 'text-base'
}
@ -77,7 +96,7 @@ export default {
:threshold="100"
icon="pi pi-arrow-up"
:pt="{
root: 'w-2rem h-2rem border-round-sm bg-primary hover:bg-primary',
root: 'w-2rem h-2rem border-round-sm bg-primary',
icon: {
class: 'text-base'
}