Skip to content

Commit

Permalink
[UI/UX] - improve UI/UX
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Ivanov committed Aug 1, 2024
1 parent c116dfe commit c972566
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
8 changes: 4 additions & 4 deletions packages/modal-ui-js/src/lib/render-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ const renderWalletOptions = () => {
optionsWrapper?.insertAdjacentHTML(
"beforeend",
`
<div class="options-list-section">
<div class="options-list-section-recent">
<div class="options-list-section-header">Recent</div>
<div class="options-list recent-options-list-content"></div>
</div>
Expand All @@ -280,7 +280,7 @@ const renderWalletOptions = () => {
optionsWrapper?.insertAdjacentHTML(
"beforeend",
`
<div class="options-list-section">
<div class="options-list-section-more">
<div class="options-list-section-header">More</div>
<div class="options-list more-options-list-content"></div>
</div>
Expand Down Expand Up @@ -379,7 +379,7 @@ export function renderModal() {
document.querySelector(".wallet-options-wrapper")?.insertAdjacentHTML(
"beforeend",
`
<div class="options-list-section">
<div class="options-list-section-recent">
<div class="options-list-section-header">Recent</div>
<div class="options-list recent-options-list-content"></div>
</div>
Expand All @@ -388,7 +388,7 @@ export function renderModal() {
document.querySelector(".wallet-options-wrapper")?.insertAdjacentHTML(
"beforeend",
`
<div class="options-list-section">
<div class="options-list-section-more">
<div class="options-list-section-header">More</div>
<div class="options-list more-options-list-content"></div>
</div>
Expand Down
11 changes: 7 additions & 4 deletions packages/modal-ui-js/src/lib/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
right: 0;
z-index: 10;
background: var(--content-bg);
padding: 32px 24px 0px 24px;
padding: 32px 24px 12px 24px;
}

.nws-modal-wrapper .nws-modal .modal-left::-webkit-scrollbar {
Expand Down Expand Up @@ -1286,8 +1286,11 @@
font-size: 14px;
}

.options-list-section-recent {
margin-bottom: 20px;
}

.scan-qr-code .footer{
.scan-qr-code .footer {
position: relative;
display: flex;
align-items: center;
Expand Down Expand Up @@ -1433,7 +1436,7 @@ input:checked + .nws-slider:before {

.nws-modal-wrapper .nws-modal .modal-left .modal-left-title {
width: 39%;
padding: 32px 16px 0px 16px;
padding: 32px 16px 12px 16px;
}
}

Expand All @@ -1451,7 +1454,7 @@ input:checked + .nws-slider:before {
.nws-modal-wrapper .nws-modal .modal-left .modal-left-title {
position: relative;
width: 100%;
padding: 0px;
padding: 32px 12px 12px 12px;
z-index: 0;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/modal-ui/src/lib/components/WalletOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ export const WalletOptions: React.FC<WalletOptionsProps> = ({
{selector.options.optimizeWalletOrder &&
selector.store.getState().recentlySignedInWallets.length > 0 ? (
<div className="wallet-options-wrapper">
<div className="options-list-section">
<div className="options-list-section-recent">
<div className="options-list-section-header">Recent</div>
<div className="options-list more-options-list-content">
{renderOptionsList(recentModules)}
</div>
</div>
<div className="options-list-section">
<div className="options-list-section-more">
<div className="options-list-section-header">More</div>
<div className="options-list more-options-list-content">
{renderOptionsList(moreModules)}
Expand Down
11 changes: 7 additions & 4 deletions packages/modal-ui/src/lib/components/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
right: 0;
z-index: 10;
background: var(--content-bg);
padding: 32px 24px 0px 24px;
padding: 32px 24px 12px 24px;
}

.nws-modal-wrapper .nws-modal .modal-left::-webkit-scrollbar {
Expand Down Expand Up @@ -1287,8 +1287,11 @@
font-size: 14px;
}

.options-list-section-recent {
margin-bottom: 20px;
}

.scan-qr-code .footer{
.scan-qr-code .footer {
position: relative;
display: flex;
align-items: center;
Expand Down Expand Up @@ -1434,7 +1437,7 @@ input:checked + .nws-slider:before {

.nws-modal-wrapper .nws-modal .modal-left .modal-left-title {
width: 39%;
padding: 32px 16px 0px 16px;
padding: 32px 16px 12px 16px;
}
}

Expand All @@ -1451,7 +1454,7 @@ input:checked + .nws-slider:before {

.nws-modal-wrapper .nws-modal .modal-left .modal-left-title {
width: 100%;
padding: 32px 12px 0px 12px;
padding: 32px 12px 12px 12px;
z-index: 0;
}

Expand Down

0 comments on commit c972566

Please sign in to comment.