Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
librenet.gr
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
LibreOps
librenet.gr
Commits
eac051ff
Commit
eac051ff
authored
May 18, 2016
by
Fla
Committed by
Fla
Aug 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set fixed height of tile in photos stream, fix #6809
parent
5f3e4fc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
9 deletions
+31
-9
app/assets/stylesheets/stream_element.scss
app/assets/stylesheets/stream_element.scss
+28
-4
app/assets/templates/photo_tpl.jst.hbs
app/assets/templates/photo_tpl.jst.hbs
+3
-5
No files found.
app/assets/stylesheets/stream_element.scss
View file @
eac051ff
...
...
@@ -18,7 +18,6 @@
overflow
:
inherit
;
>
.control-icons
{
border-radius
:
4px
;
padding-left
:
5px
;
position
:
absolute
;
right
:
6px
;
text-align
:
center
;
...
...
@@ -28,12 +27,37 @@
&
:hover
>
.bd
>
.control-icons
{
background
:
$white
;
}
}
.thumbnail
{
padding
:
10px
;
margin
:
0
0
15px
;
background
:
$white
;
border-radius
:
0
;
box-shadow
:
$card-shadow
;
img
.big_photo
{
max-height
:
200px
;
}
height
:
240px
;
margin
:
0
0
15px
;
padding
:
10px
;
// Vertically align the image
text-align
:
center
;
white-space
:
nowrap
;
&
:hover
,
&
:focus
,
&
:active
{
border-color
:
$light-grey
;
text-decoration
:
none
;
}
&
:
:
before
{
content
:
''
;
display
:
inline-block
;
height
:
100%
;
vertical-align
:
middle
;
}
.big-photo
{
display
:
inline
;
margin-left
:
-4px
;
max-height
:
200px
;
vertical-align
:
middle
;
}
}
}
...
...
app/assets/templates/photo_tpl.jst.hbs
View file @
eac051ff
...
...
@@ -20,11 +20,9 @@
</div>
{{/if}}
<div
class=
"thumbnail img-thumbnail"
>
<a
href=
"
{{
sizes
.
large
}}
"
class=
"photo-link gallery-picture"
>
<img
src=
"
{{
sizes
.
large
}}
"
class=
"photo big_photo"
>
</a>
</div>
<a
href=
"
{{
sizes
.
large
}}
"
class=
"thumbnail img-thumbnail photo-link gallery-picture"
>
<img
src=
"
{{
sizes
.
large
}}
"
class=
"photo big-photo"
>
</a>
</div>
<div
class=
"card-footer"
>
<div
class=
"footer-container"
>
...
...
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