Music 서비스 전면 개편: Lab→독립 메뉴 승격 + Suno API 고도화
- 사이드바에 Music 독립 메뉴 추가 (/lab/music → /music) - Lab 허브에서 Sonic Forge 카드 제거 - LibraryCard: 제목 최대 표시, 파일명 축소, duration 실제값 표시 - 모델 선택 UI (V4/V4_5/V5), 크레딧 잔액 표시 - 곡 연장(Extend), 보컬 분리(Vocal Split) 버튼 추가 - api.js: getMusicModels, getMusicCredits, extendMusicTrack, removeVocals - 라이브러리 로딩 스켈레톤, Provider 에러 배너 - 모바일 반응형 개선 (모델바, 크레딧, 프로바이더, 카드 액션) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
}
|
||||
|
||||
.ms-header__right {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -1597,17 +1598,18 @@
|
||||
.ms-library__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
align-items: start;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
/* ── Library Card ─────────────────────────────────── */
|
||||
.ms-lib-card {
|
||||
padding: 16px;
|
||||
padding: 14px;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--ms-line);
|
||||
background: var(--ms-surface);
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
gap: 10px;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
@@ -1620,48 +1622,63 @@
|
||||
border-color: color-mix(in srgb, var(--lib-accent, var(--ms-accent)) 60%, transparent);
|
||||
}
|
||||
|
||||
.ms-lib-card__top {
|
||||
.ms-lib-card__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ms-lib-card__icon {
|
||||
font-size: 22px;
|
||||
font-size: 20px;
|
||||
flex-shrink: 0;
|
||||
filter: drop-shadow(0 0 6px var(--lib-accent, var(--ms-accent)));
|
||||
}
|
||||
|
||||
.ms-lib-card__info {
|
||||
.ms-lib-card__title {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ms-lib-card__title {
|
||||
font-family: var(--ms-ff-disp);
|
||||
font-size: 15px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
color: var(--ms-text);
|
||||
margin: 0 0 3px;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.ms-lib-card__controls {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ms-lib-card__sub {
|
||||
padding-left: 28px;
|
||||
}
|
||||
|
||||
.ms-lib-card__filename {
|
||||
font-family: var(--ms-ff-mono);
|
||||
font-size: 10px;
|
||||
color: var(--ms-dim);
|
||||
margin: 0 0 2px;
|
||||
letter-spacing: 0.02em;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.ms-lib-card__meta {
|
||||
font-family: var(--ms-ff-mono);
|
||||
font-size: 10px;
|
||||
color: var(--ms-muted);
|
||||
color: var(--ms-dim);
|
||||
margin: 0;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.ms-lib-card__controls {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ms-lib-card__tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -1699,6 +1716,42 @@
|
||||
.ms-bpm-presets {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* 크레딧 뱃지 */
|
||||
.ms-credits {
|
||||
position: static;
|
||||
margin-bottom: 8px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* 모델 바 */
|
||||
.ms-model-bar {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.ms-model-bar__options {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* 프로바이더 바 */
|
||||
.ms-provider-bar {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.ms-provider-btn__desc {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* 라이브러리 그리드 1열 */
|
||||
.ms-library__grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
/* 카드 액션 버튼 */
|
||||
.ms-lib-card__actions {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════
|
||||
@@ -1879,6 +1932,184 @@
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════
|
||||
ERROR BANNER
|
||||
═══════════════════════════════════════════════════ */
|
||||
.ms-error-banner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 10px 14px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(232, 92, 58, 0.3);
|
||||
background: rgba(232, 92, 58, 0.08);
|
||||
color: #e85c3a;
|
||||
font-size: 12px;
|
||||
font-family: var(--ms-ff-mono);
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════
|
||||
SKELETON LOADING
|
||||
═══════════════════════════════════════════════════ */
|
||||
.ms-lib-card--skeleton {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.ms-skel {
|
||||
display: block;
|
||||
border-radius: 4px;
|
||||
background: linear-gradient(90deg, var(--ms-surface2) 25%, rgba(255,255,255,0.06) 50%, var(--ms-surface2) 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: ms-shimmer 1.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.ms-skel--icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ms-skel--title {
|
||||
flex: 1;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.ms-skel--btn {
|
||||
width: 48px;
|
||||
height: 20px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ms-skel--filename {
|
||||
width: 70%;
|
||||
height: 10px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.ms-skel--meta {
|
||||
width: 45%;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.ms-skel--tag {
|
||||
width: 52px;
|
||||
height: 18px;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
@keyframes ms-shimmer {
|
||||
0% { background-position: 200% 0; }
|
||||
100% { background-position: -200% 0; }
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════
|
||||
CREDITS BADGE (header)
|
||||
═══════════════════════════════════════════════════ */
|
||||
.ms-credits {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 4px 10px;
|
||||
border: 1px solid var(--ms-line);
|
||||
border-radius: 6px;
|
||||
background: var(--ms-surface);
|
||||
font-size: 11px;
|
||||
color: var(--ms-muted);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.ms-credits__label {
|
||||
font-family: var(--ms-ff-mono);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.ms-credits__value {
|
||||
font-weight: 700;
|
||||
color: var(--ms-accent);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════
|
||||
MODEL SELECTOR BAR
|
||||
═══════════════════════════════════════════════════ */
|
||||
.ms-model-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
background: var(--ms-surface);
|
||||
border: 1px solid var(--ms-line);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.ms-model-bar__label {
|
||||
font-family: var(--ms-ff-mono);
|
||||
font-size: 10px;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ms-muted);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ms-model-bar__options {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.ms-model-btn {
|
||||
padding: 4px 10px;
|
||||
font-size: 11px;
|
||||
font-family: var(--ms-ff-mono);
|
||||
background: transparent;
|
||||
border: 1px solid var(--ms-line);
|
||||
border-radius: 4px;
|
||||
color: var(--ms-muted);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.ms-model-btn:hover {
|
||||
border-color: var(--ms-accent);
|
||||
color: var(--ms-text);
|
||||
}
|
||||
|
||||
.ms-model-btn.is-active {
|
||||
background: var(--ms-accent);
|
||||
border-color: var(--ms-accent);
|
||||
color: #0c0b09;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════
|
||||
LIBRARY CARD — ACTION BUTTONS
|
||||
═══════════════════════════════════════════════════ */
|
||||
.ms-lib-card__actions {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
padding: 6px 0 0;
|
||||
border-top: 1px solid var(--ms-line-2);
|
||||
margin-top: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.ms-lib-card__actions .ms-btn--sm {
|
||||
font-size: 10px;
|
||||
padding: 3px 8px;
|
||||
}
|
||||
|
||||
.ms-lib-card__actions .ms-btn--sm:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════
|
||||
REDUCED MOTION
|
||||
═══════════════════════════════════════════════════ */
|
||||
|
||||
Reference in New Issue
Block a user