From 21b04ef9e931503e65755f9267ba4c2a8b2f5e1c Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 17 Jan 2024 15:12:15 +0300 Subject: [PATCH] audioplayer-title-autowidth --- src/components/Article/AudioPlayer/PlayerPlaylist.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Article/AudioPlayer/PlayerPlaylist.tsx b/src/components/Article/AudioPlayer/PlayerPlaylist.tsx index 4102678e..e0780c16 100644 --- a/src/components/Article/AudioPlayer/PlayerPlaylist.tsx +++ b/src/components/Article/AudioPlayer/PlayerPlaylist.tsx @@ -34,7 +34,7 @@ export const PlayerPlaylist = (props: Props) => { const handleMediaItemFieldChange = (field: keyof MediaItem, value: string) => { props.onMediaItemFieldChange(activeEditIndex(), field, value) } - + const titleStyle = (mi: MediaItem) => ({ 'max-width': `calc(${mi.title ? 5 : 10}0% - 16px)` }) return (