diff --git a/frontend/src/components/details.svelte b/frontend/src/components/details.svelte index ab6091c..52b8e6a 100644 --- a/frontend/src/components/details.svelte +++ b/frontend/src/components/details.svelte @@ -52,6 +52,9 @@ align-items: center; cursor: pointer; } + summary::before { + content: ''; + } summary :global(svg) { width: 14px; height: 14px; diff --git a/frontend/src/styles/style.css b/frontend/src/styles/style.css index f631ab8..ac9eba9 100644 --- a/frontend/src/styles/style.css +++ b/frontend/src/styles/style.css @@ -127,6 +127,7 @@ select:disabled { padding: 0.5rem; border: 1px solid #ccc; background-color: #fff; + appearance: none; } .field > input:focus, .field > textarea:focus, diff --git a/internal/app/views.go b/internal/app/views.go index ff1e0cd..15be34b 100644 --- a/internal/app/views.go +++ b/internal/app/views.go @@ -55,7 +55,8 @@ var BuiltInListView = View{ type ViewStore map[string]View func updateViewStore(a *App, newData ViewStore) error { - filePath := path.Join(a.Env.DataDirectory, "settings.json") + newData["list"] = BuiltInListView + filePath := path.Join(a.Env.DataDirectory, "views.json") jsonData, err := json.MarshalIndent(newData, "", "\t") if err != nil { @@ -71,6 +72,7 @@ func (a *App) Views() (ViewStore, error) { filePath := path.Join(a.Env.DataDirectory, "views.json") jsonData, err := ioutil.ReadFile(filePath) + views["list"] = BuiltInListView if err != nil { // It's ok if the file cannot be opened, for example if it is not accessible. // Therefore no error is returned. @@ -84,15 +86,17 @@ func (a *App) Views() (ViewStore, error) { if err != nil { runtime.LogInfo(a.ctx, "views.json file contains malformatted JSON data") runtime.LogInfo(a.ctx, err.Error()) - return nil, errors.New("views.json file contains malformatted JSON data") + return views, errors.New("views.json file contains malformatted JSON data") } } - views["list"] = BuiltInListView return views, nil } func (a *App) UpdateViewStore(jsonData string) error { + runtime.LogDebug(a.ctx, "Updating view store. New data:") + runtime.LogDebug(a.ctx, jsonData) + var viewStore ViewStore err := json.Unmarshal([]byte(jsonData), &viewStore) if err != nil {