Skip to content

Commit

Permalink
Merge pull request #4194 from CrocSwap/portfolio-changes
Browse files Browse the repository at this point in the history
refactor explore layout and fix scrollbar issues
  • Loading branch information
benwolski authored Oct 8, 2024
2 parents 04032ac + fefaabc commit 9609054
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 325 deletions.
58 changes: 24 additions & 34 deletions src/App/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -231,40 +231,7 @@ input[type='number'] {
appearance: textfield;
-moz-appearance: textfield;
}
.custom_scroll_ambient {
overflow-y: auto !important;

}
.custom_scroll_ambient::-webkit-scrollbar,
.content-container::-webkit-scrollbar {
width: 8px !important; /* Adjust the width as needed */
}
.custom_scroll_ambient::-webkit-scrollbar-thumb,
.content-container::-webkit-scrollbar-thumb {
border: 2px solid transparent !important; /* Space for the border */
background-clip: padding-box !important; /* Create space for the border */
border-radius: 8px !important; /* Adjust the border radius as needed */
background-image: linear-gradient(#06060c, #06060c),
linear-gradient(
0deg,
var(--accent1) 0%,
var(--accent5) 49.48%,
var(--accent1) 100%
) !important;
background-origin: border-box !important;
background-clip: content-box, border-box !important; /* Clip the border to show gradient */
min-height: 50px !important; /* Set the minimum height for the scrollbar thumb */;



}
.custom_scroll_ambient::-webkit-scrollbar-track,
.content-container::-webkit-scrollbar-track {
background: #06060c !important; /* Background color of the scrollbar track */
border-radius: 8px !important; /* Adjust the border radius as needed */
padding: 2px !important; /* Add padding to the track */;

}

/* -----------------------FUTA------------ */

.futa_main {
Expand Down Expand Up @@ -356,6 +323,29 @@ input[type='number'] {
pointer-events: none;
/* display: none; */
}

.custom_scroll_ambient::-webkit-scrollbar {
width: 5px !important;
}


/* Handle */
.custom_scroll_ambient::-webkit-scrollbar-thumb {
background:
linear-gradient(
0deg,
var(--accent1) 0%,
var(--accent5) 49.48%,
var(--accent1) 100%
) !important;
}

/* .custom_scroll_ambient{
scrollbar-width: thin;
scrollbar-color: transparent;
} */


}

@media only screen and (min-width: 1280px) {
Expand Down
22 changes: 19 additions & 3 deletions src/components/Global/Explore/DexTokens/DexTokens.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,18 @@
overflow-y: auto; /* Make only the content scrollable */
scrollbar-gutter: stable; /* This will keep the layout stable when the scrollbar appears */

padding-right: 1rem;
overflow-x: hidden;

padding-right: 4px;
padding-bottom: 1rem;
}

.borderRight {
height: 100%;
width: 2px;
width: 1px;
position: absolute;
background-color: var(--dark3);
right: 18px;
right: 6px;
}

.tokens {
Expand Down Expand Up @@ -136,6 +138,20 @@
align-items: center;
}

@media only screen and (min-width: 600px) {
.contentContainer{
padding-right: 1rem;
overflow-x: auto;
}

.borderRight {
width: 2px;
right: 18px;
}


}

@media only screen and (min-width: 768px) {
.mainContainer {
border: none;
Expand Down
1 change: 1 addition & 0 deletions src/components/Global/Explore/PoolRow/PoolRow.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@


}

22 changes: 19 additions & 3 deletions src/components/Global/Explore/TopPools/TopPools.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,18 @@
); /* Adjust this value based on your header's height */
overflow-y: auto; /* Make only the content scrollable */
scrollbar-gutter: stable; /* This will keep the layout stable when the scrollbar appears */
overflow-x: hidden;

padding-right: 1rem;
padding-right: 4px;
padding-bottom: 1rem;
}

.borderRight {
height: 100%;
width: 2px;
width: 1px;
position: absolute;
background-color: var(--dark3);
right: 18px;
right: 6px;
}

.tokens {
Expand Down Expand Up @@ -142,11 +143,26 @@
.no_results button:hover {
color: var(--text2);
}
@media only screen and (min-width: 600px) {
.contentContainer{
padding-right: 1rem;
overflow-x: auto;
}

.borderRight {
width: 2px;
right: 18px;
}


}

@media only screen and (min-width: 768px) {
.mainContainer {
border: none;
}


.no_results {
height: 70%;
}
Expand Down
Loading

0 comments on commit 9609054

Please sign in to comment.