Skip to content

Commit

Permalink
fixed user story #3
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Nov 20, 2017
1 parent 0a9b106 commit 4be6117
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/extensions/uv-seadragon-extension/config/en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"saveUserSettings": false,
"clickToZoomEnabled": true,
"searchWithinEnabled": true,
"termsOfUseEnabled": false,
"termsOfUseEnabled": true,
"theme": "uv-en-GB-theme",
"tokenStorage": "session",
"useArrowKeysToNavigate": false,
Expand Down
8 changes: 5 additions & 3 deletions src/modules/uv-shared-module/CenterPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ export class CenterPanel extends BaseView {
const $license = this.$attribution.find('.license');
const $logo = this.$attribution.find('.logo');

$attribution.html(UVUtils.sanitize(attribution));
const sanitized: string = UVUtils.sanitize(attribution);

$attribution.find('img').one("load", () => {
$attribution.html(sanitized);

$attribution.find('img').one('load', () => {
this.resize();
}).each(function() {
if(this.complete) $(this).load();
if (this.complete) $(this).load();
});

$attribution.targetBlank();
Expand Down
15 changes: 10 additions & 5 deletions src/modules/uv-shared-module/css/overlays.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
overflow: hidden;

.buttons {
padding: @padding-medium-vertical;
float: right;
padding: @padding-medium-vertical;
float: right;

.btn {
margin: 0 0 0 @margin-medium-horizontal;
}
.btn {
margin: 0 0 0 @margin-medium-horizontal;
}
}

.content {
Expand All @@ -47,6 +47,7 @@
padding-left: @padding-medium-horizontal;

overflow: auto;
text-overflow: ellipsis;

h1 {
color: @headings-color;
Expand All @@ -67,9 +68,13 @@
p {
margin: 0;
padding: @padding-medium-vertical 0 @padding-medium-vertical 0;
overflow: hidden;
text-overflow: ellipsis;

p {
padding-top: 0;
overflow: hidden;
text-overflow: ellipsis;
}
}

Expand Down

0 comments on commit 4be6117

Please sign in to comment.