From 474abcf8a073d73639733ebc1953c25a1fec29b0 Mon Sep 17 00:00:00 2001
From: DMY <147dmy@gmail.com>
Date: Fri, 22 Sep 2023 12:04:56 +0800
Subject: [PATCH] feat: add scroll bar on address list
---
src/ui/assets/address/sort-by-alphabet-2.svg | 12 ++++++++++++
src/ui/assets/address/sort-by-alphabet.svg | 18 ++++++++++--------
src/ui/views/AddressManagement/SortPopup.tsx | 2 +-
src/ui/views/AddressManagement/style.less | 6 ++++++
4 files changed, 29 insertions(+), 9 deletions(-)
create mode 100644 src/ui/assets/address/sort-by-alphabet-2.svg
diff --git a/src/ui/assets/address/sort-by-alphabet-2.svg b/src/ui/assets/address/sort-by-alphabet-2.svg
new file mode 100644
index 00000000000..f9effb76b87
--- /dev/null
+++ b/src/ui/assets/address/sort-by-alphabet-2.svg
@@ -0,0 +1,12 @@
+
+
\ No newline at end of file
diff --git a/src/ui/assets/address/sort-by-alphabet.svg b/src/ui/assets/address/sort-by-alphabet.svg
index 47b35ba4136..b06ca5963a3 100644
--- a/src/ui/assets/address/sort-by-alphabet.svg
+++ b/src/ui/assets/address/sort-by-alphabet.svg
@@ -1,10 +1,12 @@
-
\ No newline at end of file
+
+
+
+
+
\ No newline at end of file
diff --git a/src/ui/views/AddressManagement/SortPopup.tsx b/src/ui/views/AddressManagement/SortPopup.tsx
index 34bf0855d74..60c72d3d90e 100644
--- a/src/ui/views/AddressManagement/SortPopup.tsx
+++ b/src/ui/views/AddressManagement/SortPopup.tsx
@@ -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';
diff --git a/src/ui/views/AddressManagement/style.less b/src/ui/views/AddressManagement/style.less
index b89ae3d21de..e85785d0d1e 100644
--- a/src/ui/views/AddressManagement/style.less
+++ b/src/ui/views/AddressManagement/style.less
@@ -271,6 +271,12 @@
padding-top: 84px;
}
+ .address-group-list.management > .scroll-container {
+ &::-webkit-scrollbar {
+ display: initial;
+ }
+ .chromelike-scrollbar();
+ }
}
.custom-private-popup {