We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb82c4 commit 0acca35Copy full SHA for 0acca35
src/pages/vicars.tsx
@@ -1,11 +1,16 @@
1
import { Collapse, Descriptions, Flex, Image } from "antd";
2
import { VicarDetails } from "../service/data_service";
3
+import { getCurrentScreenSize, ScreenSize } from "../service/screen_size";
4
5
export function Vicars(props: { vicars: VicarDetails[] }) {
6
+ let width = '90vw';
7
+ if (getCurrentScreenSize() === ScreenSize.LARGE) {
8
+ width = '60vw';
9
+ }
10
return (
11
<>
12
<Flex vertical align="center" gap={50} style={{ marginTop: 100 }}>
- <Collapse accordion defaultActiveKey={0}>
13
+ <Collapse accordion defaultActiveKey={0} style={{ width }}>
14
{props.vicars.map((vicar, index) =>
15
(
16
<Collapse.Panel header={vicar.name} key={index} style={{ maxWidth: 800 }}>
0 commit comments