Skip to content

Commit

Permalink
fix(invest-box/terms-modal): correct theme-respective assets use; ass…
Browse files Browse the repository at this point in the history
…et position;

(1) Apply correct theme assets. (2) Correct close icon position CSS.

fix #1883
  • Loading branch information
migbash committed Jan 4, 2024
1 parent bd88f22 commit d0ccb29
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
import userBetarenaSettings from '$lib/store/user-settings.js';
import { viewport_change } from '$lib/utils/platform-functions.js';
import icon_close from '../assets/investor/icon-close-btn.svg';
import icon_close_dark from '../assets/investor/icon-close-dark-btn.svg';
import type { B_USRG_D } from '@betarena/scores-lib/types/types.misc.userguide.js';
// #endregion ➤ 📦 Package Imports
Expand Down Expand Up @@ -290,7 +293,7 @@
'
{VIEWPORT_TABLET_INIT[1] ? 'top: 16px; right: 16px;' : ''}
'
src="/assets/svg/close.svg"
src={$userBetarenaSettings.theme == 'Dark' ? icon_close : icon_close_dark}
alt='close-svg'
on:click={() => {return $sessionStore.showTermsAndConditions = false}}
width=18
Expand Down Expand Up @@ -383,6 +386,17 @@
/* 🎨 style */
display: grid;
overflow-x: hidden;
max-height: 100%;
overflow-y: scroll;
padding-bottom: 85px;
/* 💠 scrollbar */
/* IE and Edge */ -ms-overflow-style: none !important;
/* Firefox */ scrollbar-width: none !important;
&::-webkit-scrollbar
{
display: none !important;
}
}
:global
Expand Down

0 comments on commit d0ccb29

Please sign in to comment.