Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix(mobile): do not show action menu if there are no actions. Closes #2985

Gabe Kangas9490668bf1c0
diff --git a/web/components/ui/Content/ActionButtons.tsx b/web/components/ui/Content/ActionButtons.tsx
index 6b5443e5ed..43fadb8cbe 100644
--- a/web/components/ui/Content/ActionButtons.tsx
+++ b/web/components/ui/Content/ActionButtons.tsx
@@ -68,15 +68,19 @@ const ActionButtons: FC<ActionButtonProps> = ({
</ActionButtonRow>
</div>
<div className={styles.mobileActionButtonMenu}>
- <ActionButtonMenu
- className={styles.actionButtonMenu}
- showFollowItem={supportFediverseFeatures}
- showNotifyItem={supportsBrowserNotifications}
- actions={externalActions}
- externalActionSelected={setExternalActionToDisplay}
- notifyItemSelected={() => setShowNotifyModal(true)}
- followItemSelected={() => setShowFollowModal(true)}
- />
+ {(supportsBrowserNotifications ||
+ supportsBrowserNotifications ||
+ externalActionButtons.length > 0) && (
+ <ActionButtonMenu
+ className={styles.actionButtonMenu}
+ showFollowItem={supportFediverseFeatures}
+ showNotifyItem={supportsBrowserNotifications}
+ actions={externalActions}
+ externalActionSelected={setExternalActionToDisplay}
+ notifyItemSelected={() => setShowNotifyModal(true)}
+ followItemSelected={() => setShowFollowModal(true)}
+ />
+ )}
</div>
</>
);