Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Undep

Manav Rathie5d2b21a9760
diff --git a/web/packages/new/photos/components/PlanSelector.tsx b/web/packages/new/photos/components/PlanSelector.tsx
index d9ea1377bc..243de85586 100644
--- a/web/packages/new/photos/components/PlanSelector.tsx
+++ b/web/packages/new/photos/components/PlanSelector.tsx
@@ -36,7 +36,6 @@ import { bytesInGB, formattedStorageByteSize } from "@/new/photos/utils/units";
import { openURL } from "@/new/photos/utils/web";
import {
FlexWrapper,
- FluidContainer,
SpaceBetweenFlex,
} from "@ente/shared/components/Container";
import ArrowForwardIcon from "@mui/icons-material/ArrowForward";
@@ -537,12 +536,12 @@ const PlanRow: React.FC<PlanRowProps> = ({ plan, onPlanSelect, disabled }) => {
return (
<PlanRowContainer>
- <TopAlignedFluidContainer>
+ <PlanStorage>
<Typography variant="h1">{bytesInGB(plan.storage)}</Typography>
<Typography variant="h3" sx={{ color: "text.muted" }}>
{t("storage_unit.gb")}
</Typography>
- </TopAlignedFluidContainer>
+ </PlanStorage>
<Box sx={{ width: "136px" }}>
<PlanButton
sx={{
@@ -577,7 +576,9 @@ const PlanRowContainer = styled(FlexWrapper)(() => ({
"linear-gradient(268.22deg, rgba(256, 256, 256, 0.08) -3.72%, rgba(256, 256, 256, 0) 85.73%)",
}));
-const TopAlignedFluidContainer = styled(FluidContainer)`
+const PlanStorage = styled("div")`
+ flex: 1;
+ display: flex;
align-items: flex-start;
`;
diff --git a/web/packages/shared/components/Container.tsx b/web/packages/shared/components/Container.tsx
index 2c3c0bb44f..a8cf054ac2 100644
--- a/web/packages/shared/components/Container.tsx
+++ b/web/packages/shared/components/Container.tsx
@@ -28,6 +28,7 @@ export const CenteredFlex = styled(FlexWrapper)`
justify-content: center;
`;
+/** Deprecated */
export const FluidContainer = styled(FlexWrapper)`
flex: 1;
`;