mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 21:17:33 +08:00
chore (refactoring): support for edge case
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
[data-bind="sidebar"] { z-index: 1; }
|
||||
.component_filemanager_shell .component_sidebar {
|
||||
width: 250px;
|
||||
padding: 3px 7px 25px 0px;
|
||||
overflow-y: scroll;
|
||||
height: 100%;
|
||||
direction:rtl;
|
||||
direction: rtl;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@media screen and (min-width: 1600px) {
|
||||
|
||||
@ -93,6 +93,7 @@ export function createThing({
|
||||
$thing.classList.add("view-" + view);
|
||||
$time.textContent = formatTime(time);
|
||||
$img.setAttribute("src", (type === "file" ? IMAGE.FILE : IMAGE.FOLDER));
|
||||
$img.setAttribute("alt", type);
|
||||
$label.textContent = name;
|
||||
|
||||
if (type === "file") {
|
||||
|
||||
@ -76,7 +76,6 @@ body:not(.dark-mode) .component_imageviewer .component_image_container .fullscre
|
||||
z-index: 1;
|
||||
min-width: 0px;
|
||||
transition: 0.15s ease min-width;
|
||||
border-left: 1px solid var(--border);
|
||||
background: #949290;
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
@ -7,6 +7,7 @@ import (
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func NewBool(t bool) *bool {
|
||||
@ -62,6 +63,15 @@ func NewStringFromInterface(val interface{}) string {
|
||||
return val.(string)
|
||||
case float64:
|
||||
return fmt.Sprintf("%d", int64(val.(float64)))
|
||||
case bool:
|
||||
return fmt.Sprintf("%t", val.(bool))
|
||||
case []interface{}:
|
||||
list := val.([]interface{})
|
||||
strSlice := make([]string, len(list))
|
||||
for i, el := range list {
|
||||
strSlice[i] = NewStringFromInterface(el)
|
||||
}
|
||||
return strings.Join(strSlice, ",")
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user