Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
Fixed and changed layout
Browse files Browse the repository at this point in the history
  • Loading branch information
kugiigi committed Feb 5, 2021
1 parent ada363e commit 601e037
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/app/webbrowser/Browser.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,8 @@ Common.BrowserView {
}
height: units.gu(2)

enabled: !browser.wide && (recentView.state == "") &&
enabled: (!browser.wide || (browser.currentWebview && browser.currentWebview.isFullScreen))
&& (recentView.state == "") &&
browser.currentWebview &&
(Screen.orientation == Screen.primaryOrientation)

Expand Down
16 changes: 12 additions & 4 deletions src/app/webbrowser/TabComponent.qml
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ Component {

anchors {
horizontalCenter: parent.horizontalCenter
top: parent.top
topMargin : units.gu(5)
bottom: parent.bottom
bottomMargin : units.gu(5)
}
height: units.gu(6)
width: Math.min(units.gu(50), parent.width - units.gu(12))
Expand Down Expand Up @@ -258,10 +258,18 @@ Component {
Label {
color: theme.palette.normal.background
font.weight: Font.Light
fontSizeMode: Text.HorizontalFit
minimumPixelSize: Label.XSmall
textSize: Label.Large
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
anchors {
fill: parent
leftMargin: units.gu(2)
rightMargin: units.gu(2)
}
text: bottomEdgeHandle.enabled && !internal.hasKeyboard
? i18n.tr("Swipe Up To Exit Full Screen")
? i18n.tr("Swipe From The Bottom Edge To Exit Full Screen")
: i18n.tr("Press ESC To Exit Full Screen")
}

Expand Down

0 comments on commit 601e037

Please sign in to comment.