Skip to content

Commit

Permalink
fix: hide all content under placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
CedrikNikita committed Dec 16, 2024
1 parent 68ed6d3 commit 4e8ecff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/popup/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export default defineComponent({
.app-unauthenticated-placeholder {
position: absolute;
z-index: 2;
z-index: $z-index-placeholder;
inset: 0;
visibility: hidden;
opacity: 0;
Expand Down
3 changes: 3 additions & 0 deletions src/popup/components/Modals/PasswordLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,12 @@ export default defineComponent({
</script>

<style lang="scss" scoped>
@use '@/styles/variables' as *;
@use '@/styles/typography';
.password-login {
z-index: $z-index-login-modal;
.content-wrapper,
.password-login-form {
display: flex;
Expand Down
2 changes: 2 additions & 0 deletions src/popup/components/Modals/ResetWalletModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ export default defineComponent({
@use '@/styles/variables' as *;
.reset-wallet {
z-index: $z-index-login-modal;
.icon-wrapper {
margin: 8px auto 18px;
color: $color-danger;
Expand Down
2 changes: 2 additions & 0 deletions src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ $font-mono: 'IBM Plex Mono';

$z-index-header: 2;
$z-index-modal: $z-index-header + 2;
$z-index-placeholder: $z-index-modal + 1;
$z-index-login-modal: $z-index-placeholder + 1;
$z-index-loader: $z-index-modal - 1; // Modals should always be above the loader
$z-index-back-to-top: $z-index-modal + 1;

Expand Down

0 comments on commit 4e8ecff

Please sign in to comment.