Skip to content

Commit dd11bab

Browse files
committed
address comments (minWidth and check volumeShape)
1 parent febff8e commit dd11bab

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

apps/visr/src/components/tomography/TomographyView.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ function TomographyView() {
128128
<Stack direction="row" divider={<Divider orientation="vertical" />}>
129129
<Box
130130
sx={{
131+
flex: 1,
131132
width: "30%",
132133
minWidth: 260,
133134
display: "flex",
@@ -141,6 +142,7 @@ function TomographyView() {
141142
sx={{
142143
flex: 1,
143144
width: "30%",
145+
minWidth: 260,
144146
display: "flex",
145147
flexDirection: "column",
146148
}}
@@ -155,9 +157,9 @@ function TomographyView() {
155157
sx={{
156158
flex: 1,
157159
width: "30%",
160+
minWidth: 260,
158161
display: "flex",
159162
flexDirection: "column",
160-
bgcolor: "red",
161163
}}
162164
>
163165
<SliceViewer

apps/visr/src/components/tomography/VolumeViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function VolumeViewer({
3636
</Typography>
3737
</Box>
3838

39-
{visible && volumeData ? (
39+
{visible && volumeData && volumeShape ? (
4040
<Box sx={{ flex: 1 }}>
4141
<VolumeRenderer
4242
volumeData={volumeData}

0 commit comments

Comments
 (0)