Skip to content

Commit

Permalink
www: file browser improvements for mobile UI
Browse files Browse the repository at this point in the history
  • Loading branch information
marcone committed Jan 30, 2024
1 parent dffbcfe commit 67a530f
Show file tree
Hide file tree
Showing 10 changed files with 238 additions and 49 deletions.
1 change: 0 additions & 1 deletion teslausb-www/html/cgi-bin/downloadzip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ done
cd "$DOCUMENT_ROOT/${urlargs[0]}"
echo "HTTP/1.0 200 OK"
echo "Content-type: application/zip"
echo "Content-disposition: attachment; filename=TeslaUSB-files.zip"
echo
for i in "${urlargs[@]:1}"
do
Expand Down
4 changes: 2 additions & 2 deletions teslausb-www/html/contextmenu.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

.cm-menu {
width: 150px;
width: 180px;
border-radius: 2px;
position: absolute;
visibility: inherit;
Expand All @@ -26,7 +26,7 @@
.cm-item {
font-size: 12px;
color: #444;
padding: 5px 8px 5px 16px;
padding: 7px 8px 7px 16px;
}

.cm-item:hover {
Expand Down
68 changes: 59 additions & 9 deletions teslausb-www/html/filebrowser.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ details > ul.fb-droptarget {
transform: translate(-50%, -50%);
}

.dropinfo-holder {
.fb-dropinfo-holder {
position: fixed;
visibility: hidden;
z-index: 98;
Expand All @@ -278,7 +278,7 @@ details > ul.fb-droptarget {
background: rgba(0,0,0,0);
}

.dropinfo {
.fb-dropinfo {
width: 350px;
height: 150px;
top: calc(100% / 2 - 75px);
Expand All @@ -295,13 +295,13 @@ details > ul.fb-droptarget {
outline: none !important;
}

.dropinfo-line1 {
.fb-dropinfo-line1 {
position: absolute;
top: 16px;
left: 20px;
}

.dropinfo-line2 {
.fb-dropinfo-line2 {
position: absolute;
left: 20px;
top: 40px;
Expand All @@ -314,11 +314,11 @@ details > ul.fb-droptarget {
-ms-overflow-style: none;
}

.dropinfo-line2::-webkit-scrollbar {
.fb-dropinfo-line2::-webkit-scrollbar {
display: none;
}

.dropinfo-closebutton {
.fb-dropinfo-closebutton {
position: absolute;
top: 5px;
right: 5px;
Expand All @@ -328,19 +328,69 @@ details > ul.fb-droptarget {
text-align: center;
}

.dropinfo-closebutton:hover {
.fb-dropinfo-closebutton:hover {
font-weight: bold;
}

.dropinfo-cancel {
.fb-dropinfo-cancel {
position: absolute;
bottom: 8px;
right: 8px;
}

.dropinfo-progress {
.fb-dropinfo-progress {
position: absolute;
left: 8px;
width: calc(350px - 16px);
top: 90px;
}

.fb-barbutton {
float: left;
width: 48px;
height: 48px;
border: none;
padding: 0;
z-index: 3;
}

.fb-trashbutton {
background-image: url(icons/trash.svg);
}

.fb-pencilbutton {
background-image: url(icons/pencil.svg);
}

.fb-uploadbutton {
background-image: url(icons/upload.svg);
}

.fb-downloadbutton {
background-image: url(icons/download.svg);
}

.fb-newfolderbutton {
background-image: url(icons/newfolder.svg);
}

.fb-locksoundbutton {
background-image: url(icons/locksound.svg);
}

.fb-buttonbar {
position: fixed;
right: 24px;
bottom: 24px;
height: 48px;
padding: 0 8px 0 8px;
background: lightgrey;
z-index: 2;
border-radius: 24px;
}

@media(hover: hover) {
.uploadbutton {
display: none;
}
}
Loading

0 comments on commit 67a530f

Please sign in to comment.