Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/hex/server/ash_graphql-0.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm authored Apr 19, 2024
2 parents 07e91ab + 3659416 commit bae5e45
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 67 deletions.
3 changes: 1 addition & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ updates:
- package-ecosystem: npm
directory: /ui
schedule:
interval: weekly
day: monday
interval: daily
time: "05:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 3
96 changes: 48 additions & 48 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@fontsource/montserrat": "^5.0.17",
"@fontsource/mukta": "^5.0.19",
"@mui/icons-material": "^5.15.14",
"@mui/material": "^5.15.14",
"@mui/material": "^5.15.15",
"@mui/material-nextjs": "^5.15.11",
"@tanstack/react-query": "^5.28.8",
"clsx": "^2.1.0",
Expand All @@ -32,7 +32,7 @@
"leaflet": "^1.9.4",
"leaflet-defaulticon-compatibility": "^0.1.2",
"next": "14.1.4",
"phoenix": "^1.7.11",
"phoenix": "^1.7.12",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-fast-marquee": "^1.6.4",
Expand All @@ -48,17 +48,17 @@
"@graphql-codegen/typescript": "^4.0.6",
"@graphql-codegen/typescript-operations": "^4.2.0",
"@graphql-codegen/typescript-react-query": "^6.1.0",
"@next/bundle-analyzer": "^14.1.4",
"@next/bundle-analyzer": "^14.2.2",
"@tanstack/react-query-devtools": "^5.28.8",
"@types/leaflet": "^1.9.8",
"@types/leaflet": "^1.9.9",
"@types/node": "20.11.30",
"@types/phoenix": "^1.6.4",
"@types/react": "18.2.73",
"@types/react-dom": "18.2.23",
"@types/react": "18.2.78",
"@types/react-dom": "18.2.25",
"@types/video.js": "^7.3.57",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"eslint": "8.57.0",
"eslint-config-next": "14.1.4",
"eslint-config-next": "14.2.2",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-simple-import-sort": "12.0.0",
"eslint-plugin-unused-imports": "^3.1.0",
Expand Down
7 changes: 6 additions & 1 deletion ui/src/components/Player/DetectionCategoryButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ export default function DetectionCategoryButton({
alignItems: "center",
}}
>
<Image src={icon.src} alt={`${title} icon`} width={100} height={100} />
<Box sx={{ display: { xs: "block", sm: "none" } }}>
<Image src={icon.src} alt={`${title} icon`} width={20} height={20} />
</Box>
<Box sx={{ display: { xs: "none", sm: "block" } }}>
<Image src={icon.src} alt={`${title} icon`} width={100} height={100} />
</Box>
{title}
</Box>
);
Expand Down
13 changes: 4 additions & 9 deletions ui/src/components/Player/DetectionDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import {
ToggleButton,
ToggleButtonGroup,
Typography,
useMediaQuery,
} from "@mui/material";
import { useTheme } from "@mui/material/styles";
import type { StaticImageData } from "next/legacy/image";
import { useState } from "react";

Expand Down Expand Up @@ -48,8 +46,6 @@ export default function DetectionDialog({
const [description, setDescription] = useState("");
const [playerOffset, setPlayerOffset] = useState<number>();
const [playlistTimestamp, setPlaylistTimestamp] = useState<number>();
const theme = useTheme();
const isDesktop = useMediaQuery(theme.breakpoints.up("sm"));

const submitDetection = useSubmitDetectionMutation({
onSuccess: () => {
Expand Down Expand Up @@ -175,9 +171,9 @@ export default function DetectionDialog({
size="large"
aria-label="Report sound"
fullWidth
orientation={isDesktop ? "horizontal" : "vertical"}
orientation="horizontal"
sx={{
marginY: isDesktop ? 4 : 1,
marginY: [1, 4],
}}
>
{categoryButtons.map(({ id, iconImage }) => (
Expand All @@ -188,8 +184,8 @@ export default function DetectionDialog({
component={Paper}
sx={{
"&&&": {
marginX: isDesktop ? 5 : 0,
marginY: isDesktop ? 0 : 1,
marginX: [1, 2],
marginY: [1, 0],
borderRadius: 1,
overflow: "visible",
border: "solid 2px",
Expand All @@ -209,7 +205,6 @@ export default function DetectionDialog({
))}
</ToggleButtonGroup>
<TextField
autoFocus
margin="dense"
placeholder="Describe what you heard (optional)"
type="text"
Expand Down

0 comments on commit bae5e45

Please sign in to comment.