More styling options and small fixes

This commit is contained in:
2022-01-18 20:58:57 +01:00
parent 118a5db158
commit d69736d273
8 changed files with 37 additions and 29 deletions

View File

@@ -13,13 +13,16 @@ onMount(() => {
return
}
switch (Math.floor(Math.random()*2)) {
switch (Math.floor(Math.random()*3)) {
case 0:
set_ad_type("ads.plus")
break
case 1:
set_ad_type("valueimpression")
break
case 2:
set_ad_type("pixfuture")
break
}
})
@@ -130,7 +133,7 @@ head.valueimpression_loaded.subscribe(v => {
</div>
{:else if ad_type === "pixfuture"}
<!-- AuctionX Display platform tag START -->
<div bind:this={banner} class="banner" id="27517x728x90x4605x_ADSLOT1" clickTrack="%%CLICK_URL_ESC%%" style="display: block; margin: auto;"></div>
<div bind:this={banner} class="banner" id="27517x728x90x4605x_ADSLOT1" clickTrack="%%CLICK_URL_ESC%%"></div>
<script type="text/javascript" async src="https://served-by.pixfuture.com/www/delivery/headerbid.js" slotId="27517x728x90x4605x_ADSLOT1" refreshTime="5" refreshInterval="60"></script>
<!-- AuctionX Display platform tag END -->
{:else if ad_type === "adaround"}

View File

@@ -31,13 +31,16 @@ onMount(() => {
return
}
switch (Math.floor(Math.random()*2)) {
switch (Math.floor(Math.random()*3)) {
case 0:
set_ad_type("ads.plus")
break
case 1:
set_ad_type("valueimpression")
break
case 2:
set_ad_type("pixfuture")
break
}
})

View File

@@ -273,50 +273,51 @@ const keyboard_event = evt => {
return // Prevent shortcuts from interfering with input fields
}
console.debug("Key pressed: " + evt.keyCode)
switch (evt.keyCode) {
case 65: // A or left arrow key go to previous file
case 37:
console.debug("Key pressed: " + evt.key)
switch (evt.key) {
case "a": // A or left arrow key go to previous file
case "ArrowLeft":
if (list_navigator) {
list_navigator.prev()
}
break
case 68: // D or right arrow key go to next file
case 39:
case "d": // D or right arrow key go to next file
case "ArrowRight":
if (list_navigator) {
list_navigator.next()
}
break
case 83:
case "s":
case "S":
if (evt.shiftKey) {
downloader.download_list() // SHIFT + S downloads all files in list
} else {
downloader.download_file() // S to download the current file
}
break
case 82: // R to toggle list shuffle
case "r": // R to toggle list shuffle
if (list_navigator) {
toggle_shuffle()
}
break
case 67: // C to copy to clipboard
case "c": // C to copy to clipboard
copy_url()
break
case 73: // I to open the details window
case "i": // I to open the details window
details_window.toggle()
break
case 69: // E to open the edit window
if (file.can_edit) {
case "e": // E to open the edit window
if (file.can_edit || list.can_edit) {
edit_window.toggle()
}
break
case 77: // M to open the embed window
case "m": // M to open the embed window
embed_window.toggle()
break
case 71: // G to grab this file
case "g": // G to grab this file
this.grabFile()
break
case 81: // Q to close the window
case "q": // Q to close the window
window.close()
break
}

View File

@@ -71,7 +71,7 @@ const keydown = e => {
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.7);
background-color: rgba(0, 0, 0, 0.6);
}
.window {
position: absolute;
@@ -89,7 +89,6 @@ const keydown = e => {
border-radius: 20px 20px 16px 16px;
overflow: hidden;
text-align: left;
/* box-shadow: var(--shadow_color) 0px 0px 50px; Does not work with light theme */
}
.header {
flex-grow: 0;