UI 수정
This commit is contained in:
1 parent
3cbc48181b
commit
8be7b7adcf
4 files changed
+65
-66
No files matched your search
@@ -132,6 +132,7 @@ const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
|
||||
const [isPrivacyDropdownOpen, setIsPrivacyDropdownOpen] = useState(false);
|
||||
const [isLoadingAutoDescription, setIsLoadingAutoDescription] = useState(false);
|
||||
const [isHorizontalVideo, setIsHorizontalVideo] = useState(false);
|
||||
const [videoSpecs, setVideoSpecs] = useState<{ resolution: string; duration: string } | null>(null);
|
||||
const channelDropdownRef = useRef<HTMLDivElement>(null);
|
||||
const privacyDropdownRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
@@ -436,6 +437,10 @@ const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
|
||||
onLoadedMetadata={(e) => {
|
||||
const v = e.currentTarget;
|
||||
setIsHorizontalVideo(v.videoWidth > v.videoHeight);
|
||||
const totalSec = Math.floor(v.duration);
|
||||
const m = Math.floor(totalSec / 60).toString().padStart(2, '0');
|
||||
const s = (totalSec % 60).toString().padStart(2, '0');
|
||||
setVideoSpecs({ resolution: `${v.videoWidth}×${v.videoHeight}`, duration: `${m}:${s}` });
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
@@ -453,7 +458,9 @@ const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
|
||||
<p className="social-posting-video-title">
|
||||
{video.store_name} {new Date(video.created_at).toLocaleString('ko-KR')}
|
||||
</p>
|
||||
<p className="social-posting-video-specs">{t('social.videoSpecs')}</p>
|
||||
{videoSpecs && (
|
||||
<p className="social-posting-video-specs">{videoSpecs.resolution} · {videoSpecs.duration}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Channel Selector - Custom Dropdown */}
|
||||
|
||||
Reference in new issue
Block a user