Spaces:
Running
Running
Merge pull request #162 from biggraph/darabos-folder-sort
Browse files
lynxkite-app/src/lynxkite_app/main.py
CHANGED
|
@@ -107,7 +107,7 @@ def list_dir(path: str):
|
|
| 107 |
for p in path.iterdir()
|
| 108 |
if not p.name.startswith(".")
|
| 109 |
],
|
| 110 |
-
key=lambda x: x.name,
|
| 111 |
)
|
| 112 |
|
| 113 |
|
|
|
|
| 107 |
for p in path.iterdir()
|
| 108 |
if not p.name.startswith(".")
|
| 109 |
],
|
| 110 |
+
key=lambda x: (x.type != "directory", x.name.lower()),
|
| 111 |
)
|
| 112 |
|
| 113 |
|
lynxkite-app/web/src/Directory.tsx
CHANGED
|
@@ -183,7 +183,7 @@ export default function () {
|
|
| 183 |
) : (
|
| 184 |
<File />
|
| 185 |
)}
|
| 186 |
-
{shortName(item)}
|
| 187 |
</Link>
|
| 188 |
<button
|
| 189 |
type="button"
|
|
|
|
| 183 |
) : (
|
| 184 |
<File />
|
| 185 |
)}
|
| 186 |
+
<span className="entry-name">{shortName(item)}</span>
|
| 187 |
</Link>
|
| 188 |
<button
|
| 189 |
type="button"
|
lynxkite-app/web/src/index.css
CHANGED
|
@@ -390,6 +390,10 @@ body {
|
|
| 390 |
padding-left: 10px;
|
| 391 |
}
|
| 392 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 393 |
button {
|
| 394 |
padding-right: 10px;
|
| 395 |
}
|
|
|
|
| 390 |
padding-left: 10px;
|
| 391 |
}
|
| 392 |
|
| 393 |
+
.entry-name {
|
| 394 |
+
padding-left: 10px;
|
| 395 |
+
}
|
| 396 |
+
|
| 397 |
button {
|
| 398 |
padding-right: 10px;
|
| 399 |
}
|