Skip to content
This repository has been archived by the owner on Jul 5, 2018. It is now read-only.

Bug 39859: use native resolution for monument detail page photo #247

Merged
merged 1 commit into from
Sep 6, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions assets/www/app-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ button.requires-location {
max-height: 64px;
}

.photo .monument-thumbnail {
max-width: 300px;
max-height: 240px;
}

.monuments-list .distance {
color: #B0B0B0;
font-size: 0.7em;
Expand Down
5 changes: 5 additions & 0 deletions assets/www/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,11 @@ button.requires-location {
max-height: 64px;
}

.photo .monument-thumbnail {
max-width: 300px;
max-height: 240px;
}

.monuments-list .distance {
color: #B0B0B0;
font-size: 0.7em;
Expand Down
2 changes: 1 addition & 1 deletion assets/www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ require( [ 'jquery', 'l10n', 'geo', 'api', 'templates', 'monuments', 'monument',
function showMonumentDetail(monument) {
var monumentTemplate = templates.getTemplate('monument-details-template');
// @FIXME remove dependency on CAMPAIGNS[monument.country].desc
var imageFetcher = commonsApi.getImageFetcher(300, 240);
var imageFetcher = commonsApi.getImageFetcher( 300 * window.devicePixelRatio, 240 * window.devicePixelRatio );
var $monumentDetail = $( monumentTemplate( { monument: monument } ) );
$( '#monument-detail' ).html( $monumentDetail ).localize();
translateLevelsForMonument( monument ).done( function( names ) {
Expand Down