Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(insight): some ui fixes for insight panel (#4845)
This PR contains multiple _small_ fixes for the insight panel! ### [SVCC-4282](https://coveord.atlassian.net/browse/SVCC-4282) Insight Facets cannot be collapsed Missing `if (collapsed)` in the render method to not render the body if collapsed #### Before  #### After  ----- ### [SVCC-4284](https://coveord.atlassian.net/browse/SVCC-4284) Display As Link in Insight Facets could select multiple values Change `toggleSelect` to `toggleSingleSelect` if the displayAs is set to `link` (like normal facets). #### Before  ----- ### [SFINT-5866](https://coveord.atlassian.net/browse/SFINT-5866) Spacing after searchbox if no tabs and filters The searchbox had zero `height`, so the padding was not applied correctly to the search section. When the facets or user actions button was added, the height was set correctly so I added the same `height: 2.6rem` to the searchbox. #### Before  #### After  ----- ### [SVCC-4348](https://coveord.atlassian.net/browse/SVCC-4348) Result padding should be controlled with a variable In the insight result CSS, changed `@apply p-6;` to use `--atomic-layout-spacing-x` so we can control the padding externally.  [SVCC-4282]: https://coveord.atlassian.net/browse/SVCC-4282?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [SVCC-4284]: https://coveord.atlassian.net/browse/SVCC-4284?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [SFINT-5866]: https://coveord.atlassian.net/browse/SFINT-5866?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [SVCC-4348]: https://coveord.atlassian.net/browse/SVCC-4348?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Louis Bompart <[email protected]>
- Loading branch information