Commit 1b09bf16 authored by Chunchi Che's avatar Chunchi Che

fix overflow in Match

parent 194d59c6
Pipeline #27201 passed with stages
in 8 minutes and 11 seconds
...@@ -19,7 +19,7 @@ import { ...@@ -19,7 +19,7 @@ import {
} from "@/api"; } from "@/api";
import { useConfig } from "@/config"; import { useConfig } from "@/config";
import { accountStore, deckStore, resetUniverse, roomStore } from "@/stores"; import { accountStore, deckStore, resetUniverse, roomStore } from "@/stores";
import { Background, IconFont, Select } from "@/ui/Shared"; import { Background, IconFont, ScrollableArea, Select } from "@/ui/Shared";
import { import {
CustomRoomContent, CustomRoomContent,
...@@ -330,8 +330,10 @@ const Mode: React.FC<{ ...@@ -330,8 +330,10 @@ const Mode: React.FC<{
onClick?: () => void; onClick?: () => void;
}> = ({ title, desc, icon, onClick }) => ( }> = ({ title, desc, icon, onClick }) => (
<div className={styles.mode} onClick={onClick}> <div className={styles.mode} onClick={onClick}>
<div className={styles.icon}>{icon}</div> <ScrollableArea maxHeight="15rem">
<div className={styles.title}>{title}</div> <div className={styles.icon}>{icon}</div>
<div className={styles.desc}>{desc}</div> <div className={styles.title}>{title}</div>
<div className={styles.desc}>{desc}</div>
</ScrollableArea>
</div> </div>
); );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment