Merge lp:~phablet-team/webbrowser-app/fix-add-tab-label-width into lp:webbrowser-app

Proposed by Ugo Riboni
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 719
Merged at revision: 727
Proposed branch: lp:~phablet-team/webbrowser-app/fix-add-tab-label-width
Merge into: lp:webbrowser-app
Diff against target: 45 lines (+2/-4)
3 files modified
src/app/webbrowser/HistoryView.qml (+0/-1)
src/app/webbrowser/TabsView.qml (+0/-1)
src/app/webbrowser/ToolbarAction.qml (+2/-2)
To merge this branch: bzr merge lp:~phablet-team/webbrowser-app/fix-add-tab-label-width
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Olivier Tilloy Approve
Review via email: mp+235828@code.launchpad.net

Commit message

Fix add tab label to be readable in most localizations.

Description of the change

Fix add tab label to be readable in most localizations

To post a comment you must log in.
Revision history for this message
Olivier Tilloy (osomon) wrote :

That doesn’t look right, now the button doesn’t look aligned to the right anymore (it seems the additional space goes to the right of the button, resulting in an awkward margin).

review: Needs Fixing
719. By Ugo Riboni

Make the item as wide as it needs to be to fix the text instead of a fixed width

Revision history for this message
Olivier Tilloy (osomon) wrote :

That looks much better now, thanks!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/app/webbrowser/HistoryView.qml'
--- src/app/webbrowser/HistoryView.qml 2014-08-05 02:50:21 +0000
+++ src/app/webbrowser/HistoryView.qml 2014-09-24 16:24:58 +0000
@@ -108,7 +108,6 @@
108 verticalCenter: parent.verticalCenter108 verticalCenter: parent.verticalCenter
109 }109 }
110 height: parent.height - units.gu(2)110 height: parent.height - units.gu(2)
111 width: height
112111
113 text: i18n.tr("Clear")112 text: i18n.tr("Clear")
114113
115114
=== modified file 'src/app/webbrowser/TabsView.qml'
--- src/app/webbrowser/TabsView.qml 2014-08-21 08:02:21 +0000
+++ src/app/webbrowser/TabsView.qml 2014-09-24 16:24:58 +0000
@@ -110,7 +110,6 @@
110 verticalCenter: parent.verticalCenter110 verticalCenter: parent.verticalCenter
111 }111 }
112 height: parent.height - units.gu(2)112 height: parent.height - units.gu(2)
113 width: height
114113
115 text: i18n.tr("Add")114 text: i18n.tr("Add")
116115
117116
=== modified file 'src/app/webbrowser/ToolbarAction.qml'
--- src/app/webbrowser/ToolbarAction.qml 2014-07-29 22:00:59 +0000
+++ src/app/webbrowser/ToolbarAction.qml 2014-09-24 16:24:58 +0000
@@ -24,6 +24,7 @@
24 property alias text: label.text24 property alias text: label.text
2525
26 opacity: enabled ? 1.0 : 0.326 opacity: enabled ? 1.0 : 0.3
27 width: label.paintedWidth
2728
28 Item {29 Item {
29 anchors {30 anchors {
@@ -50,8 +51,7 @@
50 id: label51 id: label
51 anchors {52 anchors {
52 bottom: parent.bottom53 bottom: parent.bottom
53 left: parent.left54 horizontalCenter: parent.horizontalCenter
54 right: parent.right
55 }55 }
56 horizontalAlignment: Text.AlignHCenter56 horizontalAlignment: Text.AlignHCenter
57 fontSize: "x-small"57 fontSize: "x-small"

Subscribers

People subscribed via source and target branches

to all changes:
to status/vote changes: