Skip to content

Commit

Permalink
Fix Help page overflow menu position (#3520)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiSikora authored Jan 30, 2025
1 parent 15a0d06 commit 2a97b20
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.widthIn
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.material.AppBarDefaults
import androidx.compose.material.CircularProgressIndicator
import androidx.compose.material.Icon
Expand Down Expand Up @@ -218,6 +219,7 @@ private fun HelpPage(
}
AppBarActionsEffect(
show = showActionPopup,
appBarInsets = appBarInsets,
onShowLogs = onShowLogs,
onShowStatusPage = onShowStatusPage,
onExportDatabase = onExportDatabase,
Expand Down Expand Up @@ -253,6 +255,7 @@ private fun AppBar(
@Composable
private fun BoxScope.AppBarActionsEffect(
show: Boolean,
appBarInsets: WindowInsets,
onShowLogs: () -> Unit,
onShowStatusPage: () -> Unit,
onExportDatabase: () -> Unit,
Expand All @@ -277,6 +280,7 @@ private fun BoxScope.AppBarActionsEffect(
exit = popupExitTranstion,
modifier = Modifier
.align(Alignment.TopEnd)
.windowInsetsPadding(appBarInsets)
.offset(x = -16.dp, y = 16.dp)
.shadow(elevation = 8.dp),
) {
Expand Down

0 comments on commit 2a97b20

Please sign in to comment.