File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { formatCurrencyValue } from 'src/shared/units/formatCurrencyValue';
55import { formatPercent } from 'src/shared/units/formatPercent' ;
66import { HStack } from 'src/ui/ui-kit/HStack' ;
77import { UIText } from 'src/ui/ui-kit/UIText' ;
8+ import * as styles from './styles.module.css' ;
89
910const ONE_DAY = 24 * 60 * 60 * 1000 ;
1011const ONE_HOUR = 60 * 60 * 1000 ;
@@ -57,7 +58,7 @@ export function AssetGlobalStats({
5758 ) ;
5859
5960 return (
60- < HStack gap = { 8 } style = { { width : '100%' , overflowX : 'auto' } } >
61+ < HStack gap = { 8 } className = { styles . statsContainer } >
6162 { createdRecently ? (
6263 < AssetStatsChip title = "AGE" value = { `${ ageInHours } h` } />
6364 ) : null }
Original file line number Diff line number Diff line change 6565 -webkit-text-fill-color : transparent;
6666 background-clip : text;
6767}
68+
69+ .statsContainer {
70+ width : 100% ;
71+ overflow-x : auto;
72+ scrollbar-width : none; /* Firefox */
73+ -ms-overflow-style : none; /* IE and Edge */
74+ -webkit-overflow-scrolling : touch; /* iOS smooth scrolling */
75+ user-select : none; /* Prevent text selection during drag */
76+ }
77+
78+ /* Hide scrollbar for Webkit browsers */
79+ .statsContainer ::-webkit-scrollbar {
80+ display : none;
81+ }
You can’t perform that action at this time.
0 commit comments