Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: seed-phrase verification button not fixed to bottom #3074

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 42 additions & 26 deletions src/popup/components/FixedScreenFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
mobile: IS_MOBILE_DEVICE,
}"
>
<slot />
<div class="content">
<slot />
</div>
<div class="padding" />
</div>
</template>

Expand All @@ -25,36 +28,49 @@ export default defineComponent({

<style lang="scss" scoped>
.fixed-screen-footer {
position: sticky;
bottom: 0;
margin: auto 0 0; // Moves the footer to the bottom of the container
display: flex;
justify-content: center;
gap: 8px;
padding: var(--screen-padding-x);
padding-top: 24px;
--footer-height: 80px;

&.mobile {
margin-bottom: 20px;
.content {
position: fixed;
bottom: 0;
margin: auto 0 0; // Moves the footer to the bottom of the container
display: flex;
justify-content: center;
gap: 8px;
width: 100%;
padding: var(--screen-padding-x);
padding-top: 24px;

// Semi-transparent and gradient-like cover under the buttons
&::before {
content: '';
position: absolute;
z-index: -1;
inset: 0;
background-color: var(--screen-bg-color);
top: 40px;
box-shadow: 0 -30px 20px var(--screen-bg-color);
opacity: 0.9;
}

// Make the footer bottom rounded corners the same as the container
&,
&::before {
border-bottom-left-radius: inherit;
border-bottom-right-radius: inherit;
}
}

// Semi-transparent and gradient-like cover under the buttons
&::before {
content: '';
position: absolute;
z-index: -1;
inset: 0;
background-color: var(--screen-bg-color);
top: 40px;
box-shadow: 0 -30px 20px var(--screen-bg-color);
opacity: 0.9;
.padding {
height: var(--footer-height);
}

// Make the footer bottom rounded corners the same as the container
&,
&::before {
border-bottom-left-radius: inherit;
border-bottom-right-radius: inherit;
&.mobile {
--footer-height: 100px;

.content {
margin-bottom: 20px;
}
}
}
</style>
4 changes: 2 additions & 2 deletions src/popup/pages/CommentNew.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
</BtnMain>
</FixedScreenFooter>
</div>
</ioncontent>
</ionpage>
</IonContent>
</IonPage>
</template>

<script lang="ts">
Expand Down
Loading