diff --git a/src/components/common/Audio.tsx b/src/components/common/Audio.tsx index 2a4eb1690..667c7c029 100644 --- a/src/components/common/Audio.tsx +++ b/src/components/common/Audio.tsx @@ -8,7 +8,7 @@ import { } from '../../api/types'; import { ISettings } from '../../types'; -import { IS_MOBILE_SCREEN } from '../../util/environment'; +import { IS_SINGLE_COLUMN_LAYOUT } from '../../util/environment'; import { formatMediaDateTime, formatMediaDuration, formatPastTimeShort } from '../../util/dateFormat'; import { getMediaDuration, @@ -65,8 +65,8 @@ interface ISeekMethods { } const AVG_VOICE_DURATION = 30; -const MIN_SPIKES = IS_MOBILE_SCREEN ? 20 : 25; -const MAX_SPIKES = IS_MOBILE_SCREEN ? 50 : 75; +const MIN_SPIKES = IS_SINGLE_COLUMN_LAYOUT ? 20 : 25; +const MAX_SPIKES = IS_SINGLE_COLUMN_LAYOUT ? 50 : 75; // This is needed for browsers requiring user interaction before playing. const PRELOAD = true; @@ -286,7 +286,7 @@ const Audio: FC = ({ )}

- {formatMonthAndYear(lang, selectedDate, IS_MOBILE_SCREEN)} + {formatMonthAndYear(lang, selectedDate, IS_SINGLE_COLUMN_LAYOUT)}

)} - {!IS_MOBILE_SCREEN && canStartBot && ( + {!IS_SINGLE_COLUMN_LAYOUT && canStartBot && ( )} - {!IS_MOBILE_SCREEN && canSearch && ( + {!IS_SINGLE_COLUMN_LAYOUT && canSearch && ( )} - {(IS_MOBILE_SCREEN || !canSubscribe) && ( + {(IS_SINGLE_COLUMN_LAYOUT || !canSubscribe) && (