Skip to content

Commit b01f6bc

Browse files
Use horizontal layout for error dialog with video
1 parent c606ac5 commit b01f6bc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/project/project-actions.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: MIT
55
*/
66
import { Link, List, ListItem, Stack } from "@chakra-ui/layout";
7-
import { Box, Text, UnorderedList, VStack } from "@chakra-ui/react";
7+
import { Box, HStack, Text, UnorderedList, VStack } from "@chakra-ui/react";
88
import { isMakeCodeForV1Hex as isMakeCodeForV1HexNoErrorHandling } from "@microbit/microbit-universal-hex";
99
import { saveAs } from "file-saver";
1010
import { ReactNode } from "react";
@@ -1030,8 +1030,8 @@ export const defaultedProject = (
10301030
};
10311031

10321032
const ReconnectTextAndVideo = () => (
1033-
<>
1034-
<Box>
1033+
<HStack alignItems="flex-start">
1034+
<Box flex="1 0 50%">
10351035
<FormattedMessage
10361036
id="webusb-error-reconnect-microbit-description"
10371037
values={{
@@ -1047,11 +1047,11 @@ const ReconnectTextAndVideo = () => (
10471047
}}
10481048
/>
10491049
</Box>
1050-
<Box mb={-10}>
1050+
<Box flex="1 0 50%" mb="-5%">
10511051
<video autoPlay loop>
10521052
<source src={reconnectWebm} type="video/webm" />
10531053
<source src={reconnectMp4} type="video/mp4" />
10541054
</video>
10551055
</Box>
1056-
</>
1056+
</HStack>
10571057
);

0 commit comments

Comments
 (0)