Skip to content

Commit

Permalink
Improve facet
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Oct 11, 2021
1 parent 68225bb commit f69fc2d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 25 deletions.
57 changes: 34 additions & 23 deletions src/SearchBlock/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -598,32 +598,43 @@ div.ui.modal {

div.header {
border: none;
background-color: initial;

div.multitermlist__facet__header {
h3 {
width: 30%;
float: left;
font-size: 18px;
font-weight: 600;
}
display: flex;
justify-content: space-between;

div.search {
width: 40%;
float: left;

input.multitermlist__search__text-input {
width: calc(100% - 30px);
}
}

div.toggleSort {
width: 15%;
float: right;

div.toggle-label {
font-size: 14px;
}
}
.facet-title {
h3 {
margin: 0 1em 0 0;
}
display: flex;
}

// h3 {
// width: 30%;
// float: left;
// font-size: 18px;
// font-weight: 600;
// }
//
// div.search {
// width: 40%;
// float: left;
//
// input.multitermlist__search__text-input {
// width: calc(100% - 30px);
// }
// }
//
// div.toggleSort {
// width: 15%;
// float: right;
//
// div.toggle-label {
// font-size: 14px;
// }
// }
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { registry } from '@eeacms/search';
import codeSVG from '@plone/volto/icons/code.svg';
import SearchBlockView from './SearchBlock/SearchBlockView';
import SearchBlockEdit from './SearchBlock/SearchBlockEdit';
import LeftColumnLayout from './components/Layout/LeftColumnLayout';
// import LeftColumnLayout from './components/Layout/LeftColumnLayout';

import SelectWidget from './SearchBlock/SelectWidget';

Expand Down Expand Up @@ -55,7 +55,7 @@ const applyConfig = (config) => {
export const installGlobalSearch = (config) => {
// config.settings.devProxyToApiPath = false;
config.settings.searchlib = installConfig(config.settings.searchlib);
config.settings.searchlib.resolve.LeftColumnLayout.component = LeftColumnLayout;
// config.settings.searchlib.resolve.LeftColumnLayout.component = LeftColumnLayout;
config.widgets.id.qa_queryTypes = SelectWidget;

const { globalsearch } = config.settings.searchlib.searchui;
Expand Down

0 comments on commit f69fc2d

Please sign in to comment.