Skip to content

Commit

Permalink
Insure welcome screen respects scene margins
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 12, 2025
1 parent c55a5c9 commit 030c964
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/qml/WelcomeScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Page {
value: 1

Layout.margins: 6
Layout.topMargin: 14
Layout.topMargin: 14 + mainWindow.sceneTopMargin
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.preferredWidth: Math.min(138, mainWindow.height / 4)
Layout.preferredHeight: Math.min(138, mainWindow.height / 4)
Expand Down Expand Up @@ -748,6 +748,7 @@ Page {
RowLayout {
Layout.leftMargin: 10
Layout.rightMargin: 10
Layout.bottomMargin: mainWindow.sceneBottomMargin
Label {
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter
Expand Down Expand Up @@ -795,7 +796,7 @@ Page {
QfActionButton {
id: currentProjectButton
toolImage: Theme.getThemeVectorIcon('ic_arrow_left_white_24dp')
toolText: welcomeScreen.width > 300 ? qsTr('Return to map') : ""
toolText: welcomeScreen.width > 420 ? qsTr('Return to map') : ""
visible: qgisProject && !!qgisProject.homePath
innerActionIcon.visible: false

Expand Down

1 comment on commit 030c964

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.