diff --git a/internal/files/files.go b/internal/files/files.go index f3eee48..bb82cff 100644 --- a/internal/files/files.go +++ b/internal/files/files.go @@ -24,7 +24,7 @@ var paths struct { // A separate function is needed to easily know where a general storage path is // needed rather than a concrete Git or the whole wiki storage path, so that we // could easily refactor things later if we'll ever support different storages. -func HyphaeDir() string { return paths.gitRepo } +func HyphaeDir() string { return filepath.ToSlash(paths.gitRepo) } // GitRepo returns the path to the Git repository of the wiki. func GitRepo() string { return paths.gitRepo } diff --git a/internal/hyphae/files.go b/internal/hyphae/files.go index a1a3039..9be35a2 100644 --- a/internal/hyphae/files.go +++ b/internal/hyphae/files.go @@ -72,7 +72,7 @@ func indexHelper(path string, nestLevel uint, ch chan ExistingHypha) { } var ( - hyphaPartPath = filepath.Join(path, node.Name()) + hyphaPartPath = filepath.ToSlash(filepath.Join(path, node.Name())) hyphaName, isText, skip = mimetype.DataFromFilename(hyphaPartPath) ) if !skip { diff --git a/web/static/default.css b/web/static/default.css index 45b86b8..36c683f 100644 --- a/web/static/default.css +++ b/web/static/default.css @@ -271,7 +271,7 @@ mark { background: rgba(130, 80, 30, 5); color: inherit; } border: none; background: none; } -.categories-card #_cat-name { +.categories-card #_cat-input { width: 100%; margin: 0; padding: 0 .5rem; diff --git a/web/views/hypha.html b/web/views/hypha.html index b5afc83..3c2188d 100644 --- a/web/views/hypha.html +++ b/web/views/hypha.html @@ -110,8 +110,8 @@ {{if .GivenPermissionToModify}}