Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/components/EmptyStateComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function EmptyStateComponent({
const [videoAspectRatio, setVideoAspectRatio] = useState(VIDEO_ASPECT_RATIO);
const {shouldUseNarrowLayout} = useResponsiveLayout();
const doesSubtitleContainCustomEmojiAndMore = containsCustomEmoji(subtitle ?? '') && !containsOnlyCustomEmoji(subtitle ?? '');
const singleButtonStyle = buttons?.length === 1 && styles.alignItemsCenter;

const setAspectRatio = (event: SourceLoadEventPayload) => {
const track = event.availableVideoTracks.at(0);
Expand Down Expand Up @@ -127,7 +128,7 @@ function EmptyStateComponent({
customText={buttonText}
options={dropDownOptions}
isSplitButton={false}
style={[styles.flex1, style]}
style={[styles.flex1, singleButtonStyle, style]}
/>
) : (
<Button
Expand All @@ -138,7 +139,7 @@ function EmptyStateComponent({
icon={icon}
large
isDisabled={isDisabled}
style={[styles.flex1, style]}
style={[styles.flex1, singleButtonStyle, style]}
/>
),
)}
Expand Down