Skip to content

Commit

Permalink
hide scroll bar
Browse files Browse the repository at this point in the history
  • Loading branch information
GrayNekoBean authored and binxuan39 committed Aug 10, 2024
1 parent c39663f commit c8e2fd3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@
font-size: 0.875rem;
}

.hideScrollbar {
scrollbar-width: none;
-ms-overflow-style: none;
}

.hideScrollbar::-webkit-scrollbar {
display: none;
}

@media (min-width: 992px) {
.evaluationMetricContainer {
display: grid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ interface Props {

export const EvaluationMetric = ({ metric, checked, onClick }: Props) => {
return (
<div title={metric.name} className={checked ? styles.metricContainerSelected : styles.metricContainer} onClick={() => onClick(metric.name, checked)}>
<div
title={metric.name}
className={(checked ? styles.metricContainerSelected : styles.metricContainer) + " " + styles.hideScrollbar}
onClick={() => onClick(metric.name, checked)}
>
<div className={styles.metricTitle}>{metric.display_name}</div>
<div className={styles.metricDescription}>{metric.description}</div>
<div className={styles.metricDescription + " " + styles.hideScrollbar}>{metric.description}</div>
</div>
);
};

0 comments on commit c8e2fd3

Please sign in to comment.