Skip to content

Commit

Permalink
feat: add scroll bar on address list (#1767)
Browse files Browse the repository at this point in the history
* feat: add scroll bar on address list

* fix

* fix
  • Loading branch information
dmy147 authored Sep 22, 2023
1 parent 293647e commit eedc189
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 11 deletions.
12 changes: 12 additions & 0 deletions src/ui/assets/address/sort-by-alphabet-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 10 additions & 8 deletions src/ui/assets/address/sort-by-alphabet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/ui/views/AddressManagement/SortPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Item, Popup } from '@/ui/component';
import React, { useMemo } from 'react';
import ImgSortByUsd from '@/ui/assets/address/sort-by-usd-l.svg';
import ImgSortByType from '@/ui/assets/address/sort-by-type.svg';
import ImgSortByAlphabet from '@/ui/assets/address/sort-by-alphabet.svg';
import ImgSortByAlphabet from '@/ui/assets/address/sort-by-alphabet-2.svg';
import ImgChecked from '@/ui/assets/address/checked.svg';

import { useRabbyDispatch, useRabbySelector } from '@/ui/store';
Expand Down
3 changes: 1 addition & 2 deletions src/ui/views/AddressManagement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@ const AddressManagement = () => {
listRef.current?.resetAfterIndex(0);
}, [accountsList.length]);

console.log('currentAccountIndex', currentAccountIndex);
return (
<div className="page-address-management px-0 overflow-hidden">
<PageHeader className="pt-[24px] mx-[20px]">
Expand Down Expand Up @@ -581,7 +580,7 @@ const AddressManagement = () => {
itemData={filteredAccounts}
itemCount={filteredAccounts.length}
itemSize={getItemSize}
className="scroll-container"
className="address-scroll-container"
overscanCount={6}
>
{Row}
Expand Down
6 changes: 6 additions & 0 deletions src/ui/views/AddressManagement/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,12 @@

padding-top: 84px;
}
.address-group-list.management > .address-scroll-container {
&::-webkit-scrollbar {
display: initial;
}
.chromelike-scrollbar();
}
}

.custom-private-popup {
Expand Down

0 comments on commit eedc189

Please sign in to comment.