1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

OP-857 OP-859 fixed various glitches in Commmunity panel:

Show three lines of news instead of one;
Fixed improper eliding of news text;
Moved News scroll bar to the right so it won't overlap the news text;
Removed clipping in Sites panel that caused the Os to be clipped.
This commit is contained in:
Philippe Renon 2013-03-02 18:20:34 +01:00
parent 31e3e73799
commit 96a1e1d8c9
2 changed files with 5 additions and 4 deletions

View File

@ -53,7 +53,7 @@ Item {
spacing: 4
Text {
text: title
width: view.width
width: view.width - 4
textFormat: text.indexOf("&") > 0 ? Text.StyledText : Text.PlainText
elide: Text.ElideRight
font.bold: true
@ -62,8 +62,10 @@ Item {
Text {
text: description
width: view.width
width: view.width - 4
textFormat: text.indexOf("&") > 0 ? Text.StyledText : Text.PlainText
maximumLineCount: 3
wrapMode: Text.WordWrap
elide: Text.ElideRight
color: mouseArea.containsMouse ? "#224d81" : "black"
}

View File

@ -32,10 +32,9 @@ Item {
ListView {
id: view
width: parent.width
anchors { top: header.bottom; topMargin: 14; bottom: parent.bottom }
anchors { top: header.bottom; topMargin: 14; leftMargin: 32; bottom: parent.bottom }
model: sitesModel
spacing: 8
clip: true
delegate: Text {
text: title