Skip to content

Commit

Permalink
design: Scroll overflow for data list component
Browse files Browse the repository at this point in the history
  • Loading branch information
sim committed Jan 17, 2022
1 parent c43a179 commit 1697337
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/pages/gov/components/DataList.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@import "mixins";

.list {
overflow: auto;
}

.horizontal {
@include flex(space-evenly);
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/gov/components/DataList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface Props {

const DataList = ({ list, type }: Props) => {
return (
<div className={cx(type)}>
<div className={cx(styles.list, type)}>
{list.map(({ title, content }) => (
<Grid gap={4} key={title}>
<h1 className={styles.title}>{title}</h1>
Expand Down

0 comments on commit 1697337

Please sign in to comment.