Skip to content
Snippets Groups Projects
Commit 704f4683 authored by Phil Hughes's avatar Phil Hughes
Browse files

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
parent a0c4f3df
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -28,3 +28,11 @@
border: 1px solid;
line-height: 32px;
}
.markdown-snippet-copy {
position: fixed;
top: -10px;
left: -10px;
max-height: 0;
max-width: 0;
}
- unless @snippet.content.empty?
- 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
.file-content.wiki
= render_markup(@snippet.file_name, @snippet.data)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment