Browse Source

Fixed image overlaying pre/next-buttons

Tobias Reich 8 years ago
parent
commit
c3201afc46
3 changed files with 6 additions and 4 deletions
  1. 0 0
      dist/main.js
  2. 0 0
      dist/view.js
  3. 6 4
      src/scripts/build.js

File diff suppressed because it is too large
+ 0 - 0
dist/main.js


File diff suppressed because it is too large
+ 0 - 0
dist/view.js


+ 6 - 4
src/scripts/build.js

@@ -97,10 +97,7 @@ build.imageview = function(data, size, visibleControls) {
 
 	if (data==null) return ''
 
-	let html = `
-	           <div class='arrow_wrapper arrow_wrapper--previous'><a id='previous'>${ build.iconic('caret-left') }</a></div>
-	           <div class='arrow_wrapper arrow_wrapper--next'><a id='next'>${ build.iconic('caret-right') }</a></div>
-	           `
+	let html = ''
 
 	if (size==='big') {
 
@@ -119,6 +116,11 @@ build.imageview = function(data, size, visibleControls) {
 
 	}
 
+	html += `
+	        <div class='arrow_wrapper arrow_wrapper--previous'><a id='previous'>${ build.iconic('caret-left') }</a></div>
+	        <div class='arrow_wrapper arrow_wrapper--next'><a id='next'>${ build.iconic('caret-right') }</a></div>
+	        `
+
 	return html
 
 }

Some files were not shown because too many files changed in this diff