mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 02:48:26 +00:00
Improve source view and add qrcode for urls
The qr-code for urls is added so that these urls are easy to copy into a phone. Then buttons for copying them into the clipboard have been added.
This commit is contained in:
@ -105,10 +105,12 @@
|
||||
}
|
||||
|
||||
.default-layout .qr-code svg {
|
||||
border: 1px solid #ccc;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
.default-layout .qr-code.bordered svg {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.markdown-preview {
|
||||
overflow: auto;
|
||||
|
@ -83,3 +83,13 @@ elmApp.ports.requestUiSettings.subscribe(function(args) {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var docspell_clipboards = {};
|
||||
|
||||
elmApp.ports.initClipboard.subscribe(function(args) {
|
||||
var page = args[0];
|
||||
if (!docspell_clipboards[page]) {
|
||||
var sel = args[1];
|
||||
docspell_clipboards[page] = new ClipboardJS(sel);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user