#2080 results details

This commit is contained in:
2023-06-18 21:49:39 +02:00
parent 541f4df2d4
commit 4f6fad21e3
3 changed files with 18 additions and 14 deletions
+11 -7
View File
@@ -1401,19 +1401,23 @@ footer[role="tools"]{
@include accordeon-transition($list-item-h * 3); @include accordeon-transition($list-item-h * 3);
>header{ >header{
>*{ >*{
padding:0 0 5px; // padding:0 0 5px;
// line-height: $base-line / 2; // line-height: $base-line / 2;
&.v-select{ &.v-select{
padding-top:5px; padding-top:5px;
} }
} }
.search-keys{ div.results-details{
font-size: 0.756em; line-height: $base-line * 0.5;
font-weight: 500; .search-keys{
} font-size: 0.756em;
.results-count{ font-weight: 500;
font-size: 0.756em; }
.results-count{
white-space:nowrap;
font-size: 0.756em;
}
} }
} }
.results-list{ .results-list{
+3 -3
View File
@@ -191,9 +191,9 @@ export default {
id: this.editionid, id: this.editionid,
textid: this.item.uuid, textid: this.item.uuid,
title: this.item.title, title: this.item.title,
editionTitle: this.editionTitle editionTitle: this.editionTitle,
// pages: this.item.pages, pages: this.item.pages,
// size: this.item.size size: this.item.size
}) })
this.$emit('onClickTocItem', e.target.getAttribute('uuid')) this.$emit('onClickTocItem', e.target.getAttribute('uuid'))
}, },
+4 -4
View File
@@ -8,8 +8,8 @@
> >
<header class="small-col-12 med-col-1 large-col-1"> <header class="small-col-12 med-col-1 large-col-1">
<h2>Resultats</h2> <h2>Resultats</h2>
<div> <div class="results-details">
<span class="search-keys">{{ searchedKeys }}</span> <span class="search-keys">{{ searchedKeys }}</span><br>
<span v-if="resultsQuantity" class="results-count">{{ resultsCount }}</span> <span v-if="resultsQuantity" class="results-count">{{ resultsCount }}</span>
</div> </div>
<v-select <v-select
@@ -111,7 +111,7 @@ export default {
* above. * above.
*/ */
const popper = createPopper(component.$refs.toggle, dropdownList, { const popper = createPopper(component.$refs.toggle, dropdownList, {
placement: 'top', placement: 'bottom',
modifiers: [ modifiers: [
{ {
name: 'offset', name: 'offset',
@@ -124,7 +124,7 @@ export default {
enabled: true, enabled: true,
phase: 'write', phase: 'write',
fn ({ state }) { fn ({ state }) {
component.$el.classList.toggle('drop-up', state.placement === 'top') component.$el.classList.toggle('drop-up', state.placement === 'bottom')
} }
}] }]
}) })