Skip to content

Commit

Permalink
Use horizontal layout for error dialog with video
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed May 1, 2024
1 parent c606ac5 commit b01f6bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/project/project-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: MIT
*/
import { Link, List, ListItem, Stack } from "@chakra-ui/layout";
import { Box, Text, UnorderedList, VStack } from "@chakra-ui/react";
import { Box, HStack, Text, UnorderedList, VStack } from "@chakra-ui/react";
import { isMakeCodeForV1Hex as isMakeCodeForV1HexNoErrorHandling } from "@microbit/microbit-universal-hex";
import { saveAs } from "file-saver";
import { ReactNode } from "react";
Expand Down Expand Up @@ -1030,8 +1030,8 @@ export const defaultedProject = (
};

const ReconnectTextAndVideo = () => (
<>
<Box>
<HStack alignItems="flex-start">
<Box flex="1 0 50%">
<FormattedMessage
id="webusb-error-reconnect-microbit-description"
values={{
Expand All @@ -1047,11 +1047,11 @@ const ReconnectTextAndVideo = () => (
}}
/>
</Box>
<Box mb={-10}>
<Box flex="1 0 50%" mb="-5%">
<video autoPlay loop>
<source src={reconnectWebm} type="video/webm" />
<source src={reconnectMp4} type="video/mp4" />
</video>
</Box>
</>
</HStack>
);

0 comments on commit b01f6bc

Please sign in to comment.