Skip to content

Commit

Permalink
Refactor Scenes View
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Jan 18, 2025
1 parent 55711df commit dbd0f1b
Show file tree
Hide file tree
Showing 6 changed files with 383 additions and 358 deletions.
6 changes: 3 additions & 3 deletions src/components/PixelGraph/PixelGraphCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ const PixelGraphCanvas = ({
if (!(graphs || intGraphs)) {
return null
}
const totalPixels = virtuals[virtId]?.pixel_count || 1
const rows = showMatrix ? virtuals[virtId]?.config?.rows || 1 : 1
const cols = totalPixels / rows || 1
// const totalPixels = virtuals[virtId]?.pixel_count || 1
// const rows = showMatrix ? virtuals[virtId]?.config?.rows || 1 : 1
// const cols = totalPixels / rows || 1

return (
<div style={{ position: 'relative' }}>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Scenes/ExpanderCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const ExpanderCard = ({
}

return (
<Card sx={{ width: '100%', maxWidth: 'unset' }}>
<Card sx={{ width: '100%', maxWidth: '100vw' }}>
<Typography
onClick={handleExpandClick}
color="GrayText"
Expand Down Expand Up @@ -86,7 +86,7 @@ const ExpanderCard = ({
</Typography>
<Collapse in={expander[cardKey]}>
<Box
sx={{ height: 208, width: '100%', maxWidth: '470px', m: '0 auto' }}
sx={{ height: 298, width: '100%', maxWidth: '470px', m: '0 auto' }}
>
{children}
</Box>
Expand Down
Loading

0 comments on commit dbd0f1b

Please sign in to comment.