Replaced hidden div for textarea off-the screen
Element with the content being copied cant be hidden so instead i\'ve moved it off the screen
This commit is contained in:
parent
a0c4f3dfa9
commit
704f468376
|
@ -28,3 +28,11 @@
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.markdown-snippet-copy {
|
||||||
|
position: fixed;
|
||||||
|
top: -10px;
|
||||||
|
left: -10px;
|
||||||
|
max-height: 0;
|
||||||
|
max-width: 0;
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
- unless @snippet.content.empty?
|
- unless @snippet.content.empty?
|
||||||
- if markup?(@snippet.file_name)
|
- if markup?(@snippet.file_name)
|
||||||
.hidden.blob-content{data: {blob_id: @snippet.id}}
|
%textarea.markdown-snippet-copy.blob-content{data: {blob_id: @snippet.id}}
|
||||||
= @snippet.data
|
= @snippet.data
|
||||||
.file-content.wiki
|
.file-content.wiki
|
||||||
= render_markup(@snippet.file_name, @snippet.data)
|
= render_markup(@snippet.file_name, @snippet.data)
|
||||||
|
|
Loading…
Reference in New Issue