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" "strings"
"github.com/pocketbase/pocketbase/core" "github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/tools/osutils"
) )
// Wraps http.RoundTripper to modify dev proxy HTML responses // 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) proxy.ServeHTTP(e.Response, e.Request)
return nil return nil
}) })
_ = osutils.LaunchURL(h.appURL)
return nil return nil
} }

View File

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