Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-webresources
Commits
c7cd0b14
Commit
c7cd0b14
authored
May 29, 2019
by
Gradl, Tobias
Browse files
1295: Prepare release of v3.7
Task-Url:
https://pm.winseda.de/issues/1295
parent
8ff548a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/item/item.js
View file @
c7cd0b14
...
...
@@ -26,7 +26,7 @@ var ResultItem = function(options) {
};
ResultItem
.
prototype
.
resize
=
function
()
{
var
innerWidth
=
$
(
"
#item-images
"
).
width
();
/*
var innerWidth = $("#item-images").width();
if (innerWidth > this.options.images.maxWidth) {
innerWidth = this.options.images.maxWidth;
}
...
...
@@ -41,7 +41,7 @@ ResultItem.prototype.resize = function() {
$(".item-image").css("height", innerWidth + "px");
$(".item-image").css("width", innerWidth + "px");
$
(
"
.collection-image span
"
).
css
(
"
font-size
"
,
Math
.
floor
(
$
(
"
.collection-image
"
).
width
()
*
0.07
));
$(".collection-image span").css("font-size", Math.floor($(".collection-image").width()*0.07));
*/
};
ResultItem
.
prototype
.
toggleCollapsed
=
function
(
button
)
{
...
...
Write
Preview
Supports
Markdown
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