diff --git a/Cargo.lock b/Cargo.lock
index 4f8ca0d..738d918 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -277,6 +277,15 @@ dependencies = [
"unicode-width",
]
+[[package]]
+name = "content_inspector"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b7bda66e858c683005a53a9a60c69a4aca7eeaa45d124526e389f7aec8e62f38"
+dependencies = [
+ "memchr",
+]
+
[[package]]
name = "core-foundation"
version = "0.9.3"
@@ -442,6 +451,7 @@ dependencies = [
"chrono",
"clap",
"clap_complete",
+ "content_inspector",
"diqwest",
"form_urlencoded",
"futures",
diff --git a/Cargo.toml b/Cargo.toml
index cbe2700..3d8b0bb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -40,6 +40,7 @@ async-stream = "0.3"
walkdir = "2.3"
form_urlencoded = "1.0"
alphanumeric-sort = "1.4"
+content_inspector = "0.2.4"
[features]
default = ["tls"]
diff --git a/assets/index.css b/assets/index.css
index a1a4908..3b2174f 100644
--- a/assets/index.css
+++ b/assets/index.css
@@ -108,11 +108,10 @@ body {
}
.main {
- padding: 3em 1em 0;
+ padding: 3.3em 1em 0;
}
.empty-folder {
- padding-top: 1rem;
font-style: italic;
}
@@ -202,6 +201,25 @@ body {
padding-right: 1em;
}
+.editor {
+ width: 100%;
+ height: calc(100vh - 5rem);
+ border: 1px solid #ced4da;
+ outline: none;
+}
+
+.save-btn {
+ margin-left: auto;
+ margin-right: 2em;
+ cursor: pointer;
+ user-select: none;
+}
+
+.not-editable {
+ font-style: italic;
+}
+
+
@media (min-width: 768px) {
.path a {
min-width: 400px;
diff --git a/assets/index.html b/assets/index.html
index a882fde..0f35410 100644
--- a/assets/index.html
+++ b/assets/index.html
@@ -7,59 +7,97 @@
+
-
-
-
-
- Name |
- Progress |
-
-
-
-
+
+
+
+
+
+ Name |
+ Progress |
+
+
+
+
+
+
+