mirror of
https://github.com/pldubouilh/gossa
synced 2026-01-30 03:11:25 +01:00
fix phone view
This commit is contained in:
parent
66be990b84
commit
4e043d1b73
3 changed files with 8 additions and 6 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue