Skip to content

Commit

Permalink
fix: Change loadButton tag to div (fix #137) (#145)
Browse files Browse the repository at this point in the history
* fix: Change loadButton tag to div fixes #137

* fix: Change loadButton tag to div
  • Loading branch information
junghwan-park committed Feb 14, 2019
1 parent 5a65eec commit 4361dff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/css/main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ body > textarea
display: none;

.-header-buttons button,
.-header-buttons div,
.-controls-buttons button
display: inline-block;
position: relative;
width: 120px;
height: 40px;
Expand All @@ -63,6 +65,7 @@ body > textarea
cursor: pointer;
vertical-align: middle;
letter-spacing: 0.3px;
text-align: center;

.-download-btn
background-color: #fdba3b;
Expand Down
4 changes: 2 additions & 2 deletions src/js/ui/template/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export default ({locale, biImage, iconStyle: {normal, hover, disabled}, loadButt
</ul>
<div class="tui-image-editor-controls-buttons">
<button style="${loadButtonStyle}">
<div style="${loadButtonStyle}">
${locale.localize('Load')}
<input type="file" class="tui-image-editor-load-btn" />
</button>
</div>
<button class="tui-image-editor-download-btn" style="${downloadButtonStyle}">
${locale.localize('Download')}
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/js/ui/template/mainContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export default ({locale, biImage, commonStyle, headerStyle, loadButtonStyle, dow
<img src="${biImage}" />
</div>
<div class="tui-image-editor-header-buttons">
<button style="${loadButtonStyle}">
<div style="${loadButtonStyle}">
${locale.localize('Load')}
<input type="file" class="tui-image-editor-load-btn" />
</button>
</div>
<button class="tui-image-editor-download-btn" style="${downloadButtonStyle}">
${locale.localize('Download')}
</button>
Expand Down

0 comments on commit 4361dff

Please sign in to comment.