diff --git a/src/dependencies.pug b/src/dependencies.pug index 0aa5ac9..9c7e04c 100644 --- a/src/dependencies.pug +++ b/src/dependencies.pug @@ -24,11 +24,11 @@ if endpoints.get //- script(type="module" src="/lib/sib-resource/sib-resource.js" defer) if endpoints.get.joboffers - script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@2.0" defer) + script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@2.1" defer) //- script(type="module" src="/lib/solid-job-board/dist/index.js" defer) if endpoints.get.uploads && endpoints.get.skills && endpoints.get.users - script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@2.0" defer) + script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@2.1" defer) //- script(type="module" src="/lib/solid-directory/dist/index.js" defer) if endpoints.get.dashboards diff --git a/src/scripts/intl.js b/src/scripts/intl.js index 2decb82..fb29193 100644 --- a/src/scripts/intl.js +++ b/src/scripts/intl.js @@ -39,12 +39,7 @@ class JsI18n { if (attr == "html") { this.translateNodeContent(node, k); } else { - if (node.tagName == "SOLID-DELETE") { - let button = node.querySelector('button'); - if (button != null) { - this.translateNodeContent(button, k); - } - } + // https://git.startinblox.com/framework/sib-core/issues/733 if (attr.startsWith('label-')) { let label = node.querySelector('[name="'+attr.replace("label-", "")+'"] > label'); if(label != null) { @@ -202,4 +197,11 @@ document.addEventListener("DOMContentLoaded", () => { subtree: true, childList: true })); + // 0.15 needed https://git.startinblox.com/framework/sib-core/issues/732 + // document.addEventListener('widgetRendered', event => { + // jsI18n.processNode(event.target); + // // Then wait one arbitrary second to re-render the whole document in case a widget re-rendered + // clearTimeout(timer); + // timer = setTimeout(() => jsI18n.processNode(document.querySelector('body')), 500); + // }); }); \ No newline at end of file diff --git a/src/styles/forms/_index.scss b/src/styles/forms/_index.scss new file mode 100644 index 0000000..47e633d --- /dev/null +++ b/src/styles/forms/_index.scss @@ -0,0 +1,10 @@ +.search-form { + input[type="submit"] { + margin-bottom: 20px; + @media (min-width: 768.01px) { + margin-bottom: 0; + float: none !important; + margin-top: 0 !important; + } + } +} \ No newline at end of file diff --git a/src/styles/index.scss b/src/styles/index.scss index 93dc6f5..16e4b59 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -33,14 +33,15 @@ solid-display>div { display: contents !important; } -@import 'header/_index'; -@import 'left-nav/_index'; -@import 'content/_index'; -@import 'about/_index'; -@import 'members/_index'; -@import 'profile/_index'; -@import 'job-offers/_index'; -@import 'chat/_index'; +@import 'header'; +@import 'left-nav'; +@import 'content'; +@import 'about'; +@import 'members'; +@import 'profile'; +@import 'job-offers'; +@import 'chat'; +@import 'forms'; nav#main__menu { @media (min-width: 768.01px) { diff --git a/src/views/partials/admin/page-admin-circles.pug b/src/views/partials/admin/page-admin-circles.pug index 6e40bc8..4ad7571 100644 --- a/src/views/partials/admin/page-admin-circles.pug +++ b/src/views/partials/admin/page-admin-circles.pug @@ -83,13 +83,14 @@ div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-normal.whitespac widget-name='admin-circle-link' ) - solid-form-search.form( + solid-form-search.form.search-form( id="admin-circle-filter" fields='name' label-name='' data-trans='label-name=circle.list.searchBy' widget-name='solid-form-label-text' - class-name="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" + class-name="segment margin-bottom-medium third sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" + submit-button="GO" ) .segment.table-wrapper diff --git a/src/views/partials/admin/page-admin-communities.pug b/src/views/partials/admin/page-admin-communities.pug index f5e1733..85532c4 100644 --- a/src/views/partials/admin/page-admin-communities.pug +++ b/src/views/partials/admin/page-admin-communities.pug @@ -29,13 +29,14 @@ div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-medium.whitespac ) span.icon.icon-people.icon-xsmall.margin-right-xxsmall - solid-form-search.form( + solid-form-search.form.search-form( id="admin-community-filter" fields='cell1' label-cell1='' data-trans='label-cell1=communities.searchBy' widget-cell1='solid-form-label-text' - class-cell1="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" + class-cell1="segment margin-bottom-medium third sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" + submit-button="GO" ) .segment.table-wrapper diff --git a/src/views/partials/admin/page-admin-projects.pug b/src/views/partials/admin/page-admin-projects.pug index a9d8788..c3b73e7 100644 --- a/src/views/partials/admin/page-admin-projects.pug +++ b/src/views/partials/admin/page-admin-projects.pug @@ -58,13 +58,14 @@ div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-medium.whitespac widget-name='admin-project-link' ) - solid-form-search.form( + solid-form-search.form.search-form( id="admin-project-filter" fields='cell1' label-cell1='' data-trans='label-cell1=project.list.searchBy' widget-cell1='solid-form-label-text' - class-cell1="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" + class-cell1="segment margin-bottom-medium third sm-full padding-right-small sm-padding-none text-small text-semibold text-uppercase text-color-heading" + submit-button="GO" ) .segment.table-wrapper