From 0f7256a25d71525cb0cf074365bd5d2d33ddaa31 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Tue, 11 May 2021 12:50:11 +0200 Subject: [PATCH] fix: search button --- internal/parcel.js | 2 +- package-lock.json | 6 +++--- package.json | 2 +- src/dependencies.pug | 2 +- src/styles/left-nav/_index.scss | 4 ++-- src/views/partials/menu-left.pug | 3 ++- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/internal/parcel.js b/internal/parcel.js index d584901..ac5d52f 100644 --- a/internal/parcel.js +++ b/internal/parcel.js @@ -69,7 +69,7 @@ const options = { const bundler = new Bundler('./src/index.pug', options); bundler.addAssetType('html', require.resolve('./assets.js')); if (process.env.NODE_ENV !== 'production') { - await bundler.serve(); + await bundler.serve(process.env.PORT ? process.env.PORT : 1234); } else { await bundler.bundle(); } diff --git a/package-lock.json b/package-lock.json index c2b89b5..dd3d710 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1615,9 +1615,9 @@ } }, "@startinblox/hubl-styling-framework": { - "version": "1.8.24", - "resolved": "https://registry.npmjs.org/@startinblox/hubl-styling-framework/-/hubl-styling-framework-1.8.24.tgz", - "integrity": "sha512-eYrFaNG9iD3dskQcID7eEXabQZaE1u6QKuhJ8HTcnEKUFCo2DQhMe1F15zwYtxVeGE7KTrbGlGPGxfRQ2r8hig==" + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@startinblox/hubl-styling-framework/-/hubl-styling-framework-1.9.0.tgz", + "integrity": "sha512-2LDouqJcJUEX7fAsvRx/FO6i6eJWcYlA3yln5NB72W3+sZBL2F6E8yelzu60G3sbwX2EcwxxPLhAgd0sCaQsjQ==" }, "@types/q": { "version": "1.5.4", diff --git a/package.json b/package.json index 5f8fc94..2f1b6b1 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "clearDist": false }, "dependencies": { - "@startinblox/hubl-styling-framework": "^1.8.24", + "@startinblox/hubl-styling-framework": "^1.9.0", "cross-env": "^7.0.3", "fs-extra": "^9.0.1", "normalize.css": "^8.0.1", diff --git a/src/dependencies.pug b/src/dependencies.pug index c728c56..f906eae 100644 --- a/src/dependencies.pug +++ b/src/dependencies.pug @@ -32,7 +32,7 @@ if componentSet.has("events") script(type="module", src="https://cdn.skypack.dev/@startinblox/component-event@beta", defer) //- script(type="module", src="/lib/solid-event/solid-event.js", defer) -if componentSet.has("events") || componentSet.has("polls") || componentSet.has("resources") +//- if componentSet.has("events") || componentSet.has("polls") || componentSet.has("resources") script(type="module" src="https://cdn.skypack.dev/@startinblox/component-conversation@beta" defer) if componentSet.has("invoices") diff --git a/src/styles/left-nav/_index.scss b/src/styles/left-nav/_index.scss index 8eec398..46d02e2 100644 --- a/src/styles/left-nav/_index.scss +++ b/src/styles/left-nav/_index.scss @@ -87,12 +87,12 @@ nav#main__menu { } } - button { + div>button { background: transparent; border: none; color: #D0D4DA; margin-top: 0 !important; - height: auto; + height: 100%; @media (max-width: 768px) { width: 20%; diff --git a/src/views/partials/menu-left.pug b/src/views/partials/menu-left.pug index 3827c53..ce472a6 100644 --- a/src/views/partials/menu-left.pug +++ b/src/views/partials/menu-left.pug @@ -1,4 +1,4 @@ -solid-form-search.icon.children-icon-magnifier( +solid-form-search( id='general-search' class='segment block form menu-search' fields='name' @@ -11,6 +11,7 @@ solid-form-search.icon.children-icon-magnifier( submit-button="" submit-widget="button" + class-submit-button="icon children-icon-magnifier" ) div.divider solid-router#navbar-router(default-route=defaultRoute)