Skip to content

Commit a78c044

Browse files
committed
Image-Gallery-insert-icon changes reverted to keep the UI less busy -> #47 not included in the next update
1 parent ab9b5d6 commit a78c044

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

SearchResultList.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
// add insert button
350350
var insertButton = $(
351351
'<div class="image-button gallery-btn-insert-image">' +
352-
'<img title="<?!= msg('SEARCH_RESULT_LIST_INSERT_IMAGE') ?>" src="https://www.dimis.fim.uni-passau.de/eexcess/link.png">' +
352+
'<img title="<?!= msg('SEARCH_RESULT_LIST_INSERT_IMAGE') ?>" src="https://www.dimis.fim.uni-passau.de/eexcess/photo.png">' +
353353
'</div>');
354354
insertButton.data('image', image);
355355
insertButton.data('documentBadge', documentBadge);

Stylesheet.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
}
4141

4242
.image-button {
43-
background: -webkit-linear-gradient(top, #f5f5f5, #f1f1f1);
44-
background: linear-gradient(top, #f5f5f5, #f1f1f1);
43+
background: #f5f5f5;
4544
border: 1px solid #dcdcdc;
4645
-moz-border-radius: 2px;
4746
-webkit-border-radius: 2px;
@@ -51,6 +50,7 @@
5150
}
5251

5352
.image-button:hover {
53+
background: #f1f1f1;
5454
background: -webkit-linear-gradient(top, #f8f8f8, #f1f1f1);
5555
background: linear-gradient(top, #f8f8f8, #f1f1f1);
5656
border: 1px solid #c6c6c6;
@@ -267,8 +267,16 @@
267267

268268
.gallery-btn-insert-image {
269269
position: absolute;
270-
bottom: 10px;
271-
right: 5px;
270+
bottom: 20px;
271+
margin-left: auto;
272+
margin-right: auto;
273+
left: 0;
274+
right: 0;
275+
display: none;
276+
}
277+
278+
.gallery-item:hover .gallery-btn-insert-image {
279+
display: block;
272280
}
273281

274282
.gallery-item:hover .gallery-img {

0 commit comments

Comments
 (0)