Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
bdbe226d
Commit
bdbe226d
authored
Jan 24, 2018
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure the screenshot proportion is sound at all times
parent
68c1aaab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
discover/qml/ApplicationScreenshots.qml
discover/qml/ApplicationScreenshots.qml
+2
-3
No files found.
discover/qml/ApplicationScreenshots.qml
View file @
bdbe226d
...
...
@@ -44,7 +44,7 @@ ListView {
x
:
(
parent
.
width
-
width
)
/
2
y
:
(
parent
.
height
-
height
)
/
2
readonly
property
real
proportion
:
overlayImage
.
sourceSize
.
height
/
overlayImage
.
sourceSize
.
width
readonly
property
real
proportion
:
overlayImage
.
sourceSize
.
width
>
1
?
overlayImage
.
sourceSize
.
height
/
overlayImage
.
sourceSize
.
width
:
1
height
:
Math
.
min
(
parent
.
height
*
0.9
,
(
parent
.
width
*
0.9
)
*
proportion
,
overlayImage
.
sourceSize
.
height
)
width
:
height
/
proportion
...
...
@@ -99,7 +99,7 @@ ListView {
delegate
:
Item
{
readonly
property
url
imageSource
:
large_image_url
readonly
property
real
proportion
:
thumbnail
.
sourceSize
.
height
/
thumbnail
.
sourceSize
.
width
readonly
property
real
proportion
:
thumbnail
.
sourceSize
.
width
>
1
?
thumbnail
.
sourceSize
.
height
/
thumbnail
.
sourceSize
.
width
:
1
y
:
parent
.
height
*
0.05
height
:
parent
.
height
*
0.9
width
:
Math
.
max
(
50
,
height
/
proportion
)
...
...
@@ -115,7 +115,6 @@ ListView {
}
MouseArea
{
id
:
mouse
anchors.fill
:
parent
hoverEnabled
:
true
cursorShape
:
Qt
.
PointingHandCursor
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment