change scroller bg color

This commit is contained in:
PhilReact 2024-11-20 08:19:52 +02:00
parent e5292e5108
commit bc334148bd
6 changed files with 35 additions and 2 deletions

View File

@ -125,6 +125,7 @@ export const GroupInvites = ({ myAddress, setOpenAddGroup }) => {
maxHeight: "300px", maxHeight: "300px",
overflow: "auto", overflow: "auto",
}} }}
className="scrollable-container"
> >
{groupsWithJoinRequests?.map((group) => { {groupsWithJoinRequests?.map((group) => {
return ( return (

View File

@ -172,7 +172,7 @@ export const GroupJoinRequests = ({ myAddress, groups, setOpenManageMembers, get
</Typography> </Typography>
</Box> </Box>
)} )}
<List sx={{ width: "100%", maxWidth: 360, bgcolor: "background.paper", maxHeight: '300px', overflow: 'auto' }}> <List className="scrollable-container" sx={{ width: "100%", maxWidth: 360, bgcolor: "background.paper", maxHeight: '300px', overflow: 'auto' }}>
{filteredJoinRequests?.map((group)=> { {filteredJoinRequests?.map((group)=> {
if(group?.data?.length === 0) return null if(group?.data?.length === 0) return null
return ( return (

View File

@ -685,6 +685,7 @@ export const ListOfGroupPromotions = () => {
rowHeight={cache.rowHeight} rowHeight={cache.rowHeight}
rowRenderer={rowRenderer} rowRenderer={rowRenderer}
deferredMeasurementCache={cache} deferredMeasurementCache={cache}
className="scrollable-container"
/> />
)} )}
</AutoSizer> </AutoSizer>

View File

@ -135,6 +135,7 @@ export const ListOfThreadPostsWatched = () => {
)} )}
{posts?.length > 0 && ( {posts?.length > 0 && (
<List <List
className="scrollable-container"
sx={{ sx={{
width: "100%", width: "100%",
maxWidth: 360, maxWidth: 360,

View File

@ -129,6 +129,7 @@ export const QMailMessages = ({userName, userAddress}) => {
</Box> </Box>
<Box <Box
className="scrollable-container"
sx={{ sx={{
width: "322px", width: "322px",
height: isMobile ? "165px" : "250px", height: isMobile ? "165px" : "250px",

View File

@ -79,12 +79,41 @@ body {
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background-color: white; background-color: #444444;
border-radius: 8px; border-radius: 8px;
background-clip: content-box; background-clip: content-box;
border: 4px solid transparent; border: 4px solid transparent;
} }
@property --var1 {
syntax: "<color>";
inherits: true;
initial-value: transparent;
}
.scrollable-container {
transition: --var1 0.4s;
}
.scrollable-container:hover {
--var1: #444444;
}
.scrollable-container::-webkit-scrollbar-thumb {
background-color: var(--var1);
border-radius: 8px;
background-clip: content-box;
border: 4px solid transparent;
opacity: 0;
}
/* Mobile-specific scrollbar styles */ /* Mobile-specific scrollbar styles */
@media only screen and (max-width: 600px) { @media only screen and (max-width: 600px) {
::-webkit-scrollbar { ::-webkit-scrollbar {