ui: fix mobile chat form overflow and bust stale bundle cache (#24158)
This commit is contained in:
@@ -46,10 +46,12 @@ export function llamaCppBuildPlugin(): Plugin {
|
|||||||
|
|
||||||
content = content.replace(/\r/g, '');
|
content = content.replace(/\r/g, '');
|
||||||
content = GUIDE_FOR_FRONTEND + '\n' + content;
|
content = GUIDE_FOR_FRONTEND + '\n' + content;
|
||||||
content = content.replace(/\/_app\/immutable\/bundle\.[^"]+\.js/g, './bundle.js');
|
|
||||||
|
// Keep the Vite hash as a query string so each build busts the browser cache
|
||||||
|
content = content.replace(/\/_app\/immutable\/bundle\.([^".]+)\.js/g, './bundle.js?$1');
|
||||||
content = content.replace(
|
content = content.replace(
|
||||||
/\/_app\/immutable\/assets\/bundle\.[^"]+\.css/g,
|
/\/_app\/immutable\/assets\/bundle\.([^".]+)\.css/g,
|
||||||
'./bundle.css'
|
'./bundle.css?$1'
|
||||||
);
|
);
|
||||||
content = content.replace(/__sveltekit_[a-z0-9]+/g, '__sveltekit__');
|
content = content.replace(/__sveltekit_[a-z0-9]+/g, '__sveltekit__');
|
||||||
|
|
||||||
|
|||||||
@@ -254,7 +254,7 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<Sidebar.Provider bind:open={sidebarOpen}>
|
<Sidebar.Provider bind:open={sidebarOpen}>
|
||||||
<div class="flex h-screen w-full">
|
<div class="flex h-dvh w-full">
|
||||||
<Sidebar.Root variant="floating" class="h-full"
|
<Sidebar.Root variant="floating" class="h-full"
|
||||||
><SidebarNavigation bind:this={chatSidebar} /></Sidebar.Root
|
><SidebarNavigation bind:this={chatSidebar} /></Sidebar.Root
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user