Skip to content

Commit 0acca35

Browse files
committed
update vicars page style
1 parent 9fb82c4 commit 0acca35

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pages/vicars.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import { Collapse, Descriptions, Flex, Image } from "antd";
22
import { VicarDetails } from "../service/data_service";
3+
import { getCurrentScreenSize, ScreenSize } from "../service/screen_size";
34

45
export function Vicars(props: { vicars: VicarDetails[] }) {
6+
let width = '90vw';
7+
if (getCurrentScreenSize() === ScreenSize.LARGE) {
8+
width = '60vw';
9+
}
510
return (
611
<>
712
<Flex vertical align="center" gap={50} style={{ marginTop: 100 }}>
8-
<Collapse accordion defaultActiveKey={0}>
13+
<Collapse accordion defaultActiveKey={0} style={{ width }}>
914
{props.vicars.map((vicar, index) =>
1015
(
1116
<Collapse.Panel header={vicar.name} key={index} style={{ maxWidth: 800 }}>

0 commit comments

Comments
 (0)