가사에 orientation 추가

This commit is contained in:
skkim committed 2026-03-24 14:39:58 +09:00
1 parent 3f3f8bb159
commit eb55383de5
6 files changed
+57 -11

No files matched your search

+11
View File
@@ -331,6 +331,17 @@ const CompletionContent: React.FC<CompletionContentProps> = ({
</svg>
<span>{t('completion.back')}</span>
</button>
<a
href="https://forms.gle/4a8mGebBYtdesvby9"
target="_blank"
rel="noopener noreferrer"
className="comp2-inquiry-btn"
>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" />
</svg>
<span>문의하기</span>
</a>
</div>
<div className="comp2-title-row">
@@ -286,6 +286,9 @@ const SoundStudioContent: React.FC<SoundStudioContentProps> = ({
setErrorMessage(null);
setStatusMessage(t('soundStudio.generatingLyrics'));
const savedRatio = localStorage.getItem('castad_video_ratio');
const orientation = (savedRatio === 'horizontal' || savedRatio === 'vertical') ? savedRatio : 'vertical';
try {
const language = LANGUAGE_MAP[selectedLang] || 'Korean';
@@ -298,6 +301,7 @@ const SoundStudioContent: React.FC<SoundStudioContentProps> = ({
m_id: mId,
region: businessInfo.region,
task_id: imageTaskId,
orientation,
});
if (!lyricResponse.success || !lyricResponse.task_id) {
+5 -5
View File
@@ -266,13 +266,13 @@ const UrlInputContent: React.FC<UrlInputContentProps> = ({ onAnalyze, onAutocomp
</div>
)}
</div>
{/* 검색 버튼 */}
<button type="submit" className="url-input-button">
{t('urlInput.searchButton')}
</button>
</div>
{/* 검색 버튼 */}
<button type="submit" className="url-input-button">
{t('urlInput.searchButton')}
</button>
{/* 에러 메시지 */}
{error && (
<p className="url-input-error">{error}</p>
+1
View File
@@ -67,6 +67,7 @@ export interface LyricGenerateRequest {
m_id: number;
region: string;
task_id: string;
orientation?: 'vertical' | 'horizontal';
}
// 가사 생성 응답