mirror of
https://github.com/pldubouilh/gossa.git
synced 2026-09-03 23:57:45 -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 prevent = e => e.preventDefault()
|
||||||
const flicker = w => w.classList.remove('runFade') || void w.offsetWidth || w.classList.add('runFade')
|
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
|
// Manual upload
|
||||||
manualUpload.addEventListener('change', () => Array.from(manualUpload.files).forEach(f => isDupe(f.name) || postFile(f, '/' + f.name)), false)
|
manualUpload.addEventListener('change', () => Array.from(manualUpload.files).forEach(f => isDupe(f.name) || postFile(f, '/' + f.name)), false)
|
||||||
|
|
||||||
|
|||||||
+7
-1
@@ -17,6 +17,9 @@
|
|||||||
body {
|
body {
|
||||||
margin-left: 10px !important;
|
margin-left: 10px !important;
|
||||||
}
|
}
|
||||||
|
.ic {
|
||||||
|
display: inherit !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@@ -93,7 +96,10 @@ td.display-name {
|
|||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 20px;
|
margin-top: 30px;
|
||||||
|
word-wrap: break-word;
|
||||||
|
width: 80%;
|
||||||
|
margin-bottom: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#icHolder {
|
#icHolder {
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
<h1>.{{.Title}}</h1>
|
<h1>.{{.Title}}</h1>
|
||||||
|
|
||||||
<div id="icHolder">
|
<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 style="display:none;" class="ic icon-large-images" onclick="window.picsToggle()"></div>
|
||||||
<div class="ic icon-large-folder" onclick="window.mkdirBtn()"></div>
|
<div class="ic icon-large-folder" onclick="window.mkdirBtn()"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user