feat: modal & payments

This commit is contained in:
2025-11-17 14:51:04 +01:00
parent 93f2711574
commit c7cbd85088
3 changed files with 144 additions and 72 deletions
+4 -2
View File
@@ -31,7 +31,6 @@ import { gutters, size } from "../../styles/Style";
import { FONT_FAMILY } from "../../styles/Fonts";
import useSharedAudioPlayer from "../../hooks/useSharedAudioPlayer";
import CreateLyricsHeader from "../Writing/components/CreateLyricsHeader";
import CreditAmount from "../../components/CreditAmount";
const MUSIC_GENERATION_COIN_COST = 8;
const SONG_OPTIONS_PER_GENERATION = 2;
@@ -528,7 +527,10 @@ const RegenerateModal = ({ visible, onClose, onConfirm }) => {
const { width, height } = useWindowDimensions();
const isCompactWidth = width < 420;
const horizontalPadding = Math.max(isCompactWidth ? 16 : gutters, 12);
const verticalPadding = Math.max(isCompactWidth ? gutters : gutters * 1.5, 12);
const verticalPadding = Math.max(
isCompactWidth ? gutters : gutters * 1.5,
12
);
const availableWidth = Math.max(width - horizontalPadding * 2, 0);
const contentWidth =
availableWidth > 0