chore (refactoring): support for edge case

This commit is contained in:
MickaelK
2025-05-09 13:43:44 +10:00
parent 4762c1f1ea
commit 790cf0d571
4 changed files with 13 additions and 2 deletions

View File

@ -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) {

View File

@ -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") {

View 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);
}

View File

@ -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 ""
}