refactor: launch web url for dev server + css update

This commit is contained in:
henrygd
2025-09-07 14:07:23 -04:00
parent a1eb15dabb
commit e53d41dcec
2 changed files with 3 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ import (
"strings"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/tools/osutils"
)
// Wraps http.RoundTripper to modify dev proxy HTML responses
@@ -75,5 +76,6 @@ func (h *Hub) startServer(se *core.ServeEvent) error {
proxy.ServeHTTP(e.Response, e.Request)
return nil
})
_ = osutils.LaunchURL(h.appURL)
return nil
}

View File

@@ -133,7 +133,7 @@ export const SystemDialog = ({ setOpen, system }: { setOpen: (open: boolean) =>
>
<Tabs defaultValue={tab} onValueChange={setTab}>
<DialogHeader>
<DialogTitle className="mb-2 max-w-100 truncate pr-8">
<DialogTitle className="mb-1 pb-1 max-w-100 truncate pr-8">
{system ? `${t`Edit`} ${system?.name}` : <Trans>Add New System</Trans>}
</DialogTitle>
<TabsList className="grid w-full grid-cols-2">