diff --git a/frontend/src/components/PodcastMaker/CreateStep/AvatarSelector.tsx b/frontend/src/components/PodcastMaker/CreateStep/AvatarSelector.tsx index 89dcb6d7..3ecc1088 100644 --- a/frontend/src/components/PodcastMaker/CreateStep/AvatarSelector.tsx +++ b/frontend/src/components/PodcastMaker/CreateStep/AvatarSelector.tsx @@ -61,30 +61,33 @@ export const AvatarSelector: React.FC = ({ sx={{ flex: 1, minWidth: 0, - p: 2.5, + p: { xs: 1.5, sm: 2.5 }, borderRadius: 2, background: "#ffffff", border: "1px solid rgba(15, 23, 42, 0.08)", boxShadow: "0 1px 2px rgba(15, 23, 42, 0.04)", }} > - - - - - - Podcast Presenter Avatar - + + + + + + + Podcast Presenter Avatar + + @@ -102,7 +105,7 @@ export const AvatarSelector: React.FC = ({ arrow placement="top" > - + @@ -115,21 +118,22 @@ export const AvatarSelector: React.FC = ({ variant="scrollable" scrollButtons="auto" sx={{ - mb: 3, - minHeight: 48, + mb: { xs: 2, sm: 3 }, + minHeight: { xs: 40, sm: 48 }, "& .MuiTabs-indicator": { display: "none", }, "& .MuiTabs-flexContainer": { - gap: 1.5, + gap: { xs: 1, sm: 1.5 }, }, "& .MuiTab-root": { textTransform: "none", - minHeight: 44, + minHeight: { xs: 36, sm: 44 }, fontWeight: 600, - fontSize: "0.875rem", - borderRadius: "12px", - px: 2.5, + fontSize: { xs: "0.75rem", sm: "0.875rem" }, + borderRadius: { xs: "8px", sm: "12px" }, + px: { xs: 1.5, sm: 2.5 }, + minWidth: { xs: "auto", sm: 0 }, color: "#64748b", border: "1.5px solid #e2e8f0", transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)", @@ -156,11 +160,11 @@ export const AvatarSelector: React.FC = ({ {avatarTab === 0 && ( - + {loadingBrandAvatar ? ( ) : avatarPreview && avatarPreview === brandAvatarFromDb ? ( - + = ({ sx={{ width: "100%", height: "auto", - maxHeight: 200, + maxHeight: { xs: 160, sm: 200 }, objectFit: "contain", borderRadius: 2, border: "2px solid #667eea", @@ -204,7 +208,7 @@ export const AvatarSelector: React.FC = ({ ) : brandAvatarFromDb ? ( - + = ({ sx={{ width: "100%", height: "auto", - maxHeight: 200, + maxHeight: { xs: 160, sm: 200 }, objectFit: "contain", borderRadius: 2, border: "1.5px solid #e2e8f0", @@ -236,8 +240,8 @@ export const AvatarSelector: React.FC = ({ ) : ( - - + + No brand avatar found.