Fix chat overlay button showing in portrait (#116)

This commit is contained in:
Tommy Chow 2022-05-24 13:18:55 -04:00
parent effabf53b9
commit 0683c4ff8e
2 changed files with 3 additions and 2 deletions

View file

@ -108,7 +108,8 @@ class Chat extends StatelessWidget {
),
),
),
if (chatStore.settings.showBottomBar && !chatStore.settings.fullScreen) ChatBottomBar(chatStore: chatStore),
if (chatStore.settings.showBottomBar && (!chatStore.settings.fullScreen || MediaQuery.of(context).orientation == Orientation.portrait))
ChatBottomBar(chatStore: chatStore),
if (chatStore.assetsStore.showEmoteMenu)
SizedBox(
height: MediaQuery.of(context).size.height / 3,

View file

@ -300,7 +300,7 @@ class VideoOverlay extends StatelessWidget {
),
),
),
if (videoStore.settingsStore.fullScreen) chatOverlayButton,
if (videoStore.settingsStore.fullScreen && orientation == Orientation.landscape) chatOverlayButton,
refreshButton,
if (Platform.isIOS && videoStore.settingsStore.pictureInPicture)
IconButton(