mirror of
https://github.com/pldubouilh/gossa.git
synced 2026-08-28 12:56:35 -04:00
fix phone view
This commit is contained in:
@@ -33,11 +33,6 @@ const prependPath = a => a.startsWith('/') ? a : decodeURI(location.pathname) +
|
||||
const prevent = e => e.preventDefault()
|
||||
const flicker = w => w.classList.remove('runFade') || void w.offsetWidth || w.classList.add('runFade')
|
||||
|
||||
// Add upload icon on phones
|
||||
if (typeof window.orientation !== 'undefined') {
|
||||
icHolder.innerHTML = '<div onclick="document.getElementById(\'clickupload\').click()" class="ic icon-large-upload"></div>' + icHolder.innerHTML
|
||||
}
|
||||
|
||||
// Manual upload
|
||||
manualUpload.addEventListener('change', () => Array.from(manualUpload.files).forEach(f => isDupe(f.name) || postFile(f, '/' + f.name)), false)
|
||||
|
||||
|
||||
+7
-1
@@ -17,6 +17,9 @@
|
||||
body {
|
||||
margin-left: 10px !important;
|
||||
}
|
||||
.ic {
|
||||
display: inherit !important;
|
||||
}
|
||||
}
|
||||
|
||||
html {
|
||||
@@ -93,7 +96,10 @@ td.display-name {
|
||||
|
||||
h1 {
|
||||
display: inline-block;
|
||||
margin-top: 20px;
|
||||
margin-top: 30px;
|
||||
word-wrap: break-word;
|
||||
width: 80%;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
#icHolder {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<h1>.{{.Title}}</h1>
|
||||
|
||||
<div id="icHolder">
|
||||
<div style="display:none;" onclick="document.getElementById('clickupload').click()" class="ic icon-large-upload manualUp"></div>
|
||||
<div style="display:none;" class="ic icon-large-images" onclick="window.picsToggle()"></div>
|
||||
<div class="ic icon-large-folder" onclick="window.mkdirBtn()"></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user