misc small fixes

This commit is contained in:
axolotle
2021-07-28 20:35:54 +02:00
parent 759fbd94f1
commit 25e621a06e
9 changed files with 47 additions and 25 deletions
+12
View File
@@ -11,3 +11,15 @@
pointer-events: auto; pointer-events: auto;
} }
} }
.collapse-icon {
display: inline-block;
transform: translate(0, 2px) rotate(270deg);
line-height: 0;
font-size: 1.2rem;
font-weight: 200;
&.collapsed {
transform: translate(3px, 2px) rotate(90deg) ;
}
}
@@ -7,7 +7,7 @@
<template v-slot="{ tags, disabled, addTag, removeTag }"> <template v-slot="{ tags, disabled, addTag, removeTag }">
<b-dropdown <b-dropdown
:text="buttonText" :text="buttonText"
variant="outline-dark" class="tags-dropdown d-tb-block" variant="outline-dark" class="tags-dropdown"
dropright dropright
> >
<b-dropdown-item-button <b-dropdown-item-button
@@ -89,6 +89,7 @@ export default {
.b-form-tag { .b-form-tag {
font-weight: $font-weight-bold; font-weight: $font-weight-bold;
text-transform: capitalize;
padding-top: 0; padding-top: 0;
padding-bottom: 0; padding-bottom: 0;
border: $line; border: $line;
-1
View File
@@ -103,7 +103,6 @@ export default {
blockquote { blockquote {
margin: 0 0 50px 50px; margin: 0 0 50px 50px;
font-style: italic;
@include media-breakpoint-up($size-bp) { @include media-breakpoint-up($size-bp) {
margin: 50px 0 110px 180px; margin: 50px 0 110px 180px;
+2 -2
View File
@@ -47,8 +47,8 @@
"read": "Voir le texte", "read": "Voir le texte",
"read-origin": "Voir le texte de départ", "read-origin": "Voir le texte de départ",
"read-artwork": "Voir l'œuvre", "read-artwork": "Voir l'œuvre",
"open-origin": "Texte de référence", "open-origin": "Texte de départ",
"open-artwork": "Texte de l'œuvre" "open-artwork": "Notice"
}, },
"history": "Historique de consultation", "history": "Historique de consultation",
"from": "à partir de :", "from": "à partir de :",
+2 -2
View File
@@ -80,10 +80,10 @@ export default {
.page-intro { .page-intro {
font-family: $font-family-text; font-family: $font-family-text;
font-size: 3rem; font-size: 2rem;
@include media-breakpoint-up($size-bp) { @include media-breakpoint-up($size-bp) {
font-size: 5rem; font-size: 3rem;
} }
} }
} }
+4 -13
View File
@@ -46,7 +46,7 @@
@click="optionsVisible = !optionsVisible" @click="optionsVisible = !optionsVisible"
variant="outline-dark" variant="outline-dark"
> >
Options <span class="collapse-icon" :class="optionsVisible ? null : 'collapsed'">></span> Options <span class="collapse-icon" :class="{ collapsed: !optionsVisible }">></span>
</b-button> </b-button>
</b-navbar> </b-navbar>
@@ -178,6 +178,9 @@ export default {
} }
.nav-list { .nav-list {
margin-left: auto;
margin-right: 1rem;
ul { ul {
display: flex; display: flex;
padding: 0; padding: 0;
@@ -232,18 +235,6 @@ export default {
} }
} }
.collapse-icon {
display: inline-block;
transform: translate(0, 2px) rotate(270deg);
line-height: 0;
font-size: 1.2rem;
font-weight: 200;
&.collapsed {
transform: translate(3px, 2px) rotate(90deg) ;
}
}
// #collapse-options { // #collapse-options {
// @include media-breakpoint-down(sm) { // @include media-breakpoint-down(sm) {
// position: absolute; // position: absolute;
+15 -3
View File
@@ -1,13 +1,18 @@
<template> <template>
<footer class="nodes-history no-events-container" v-if="history.length"> <footer class="nodes-history no-events-container" v-if="history.length">
<b-dropdown <b-dropdown
:text="$t('history')"
variant="outline-dark" variant="outline-dark"
dropup no-flip dropup no-flip no-caret
boundary="main" boundary="main"
class="no-events-container" class="no-events-container"
@shown="scrollToEnd" @shown="scrollToEnd"
@hide="shown = false"
> >
<template #button-content>
<span class="collapse-icon" :class="{ collapsed: shown }">></span>
{{ $t('history') }}
</template>
<b-dropdown-text class="dropdown-item-arrow left"> <b-dropdown-text class="dropdown-item-arrow left">
<b-button variant="link" @click="onArrowClick('left')" :disabled="leftDisabled">&lt;</b-button> <b-button variant="link" @click="onArrowClick('left')" :disabled="leftDisabled">&lt;</b-button>
</b-dropdown-text> </b-dropdown-text>
@@ -55,7 +60,8 @@ export default {
data () { data () {
return { return {
leftDisabled: false, leftDisabled: false,
rightDisabled: false rightDisabled: false,
shown: false
} }
}, },
@@ -78,6 +84,7 @@ export default {
const container = this.$el.querySelector('.dropdown-menu') const container = this.$el.querySelector('.dropdown-menu')
container.scrollTo({ left: container.scrollWidth }) container.scrollTo({ left: container.scrollWidth })
this.updateBtnDir() this.updateBtnDir()
this.shown = true
}, },
onArrowClick (dir) { onArrowClick (dir) {
@@ -224,5 +231,10 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.collapse-icon {
margin-right: .25rem;
font-weight: 700;
}
} }
</style> </style>
+4 -3
View File
@@ -61,7 +61,7 @@
/> />
</div> </div>
<div class="filters-mini-group"> <div class="filters-mini-group align-items-center">
<b-form-checkbox <b-form-checkbox
v-model="strangenessIsActive" name="tags-button" v-model="strangenessIsActive" name="tags-button"
button class="toggle-btn" button class="toggle-btn"
@@ -277,8 +277,9 @@ export default {
.filters-group { .filters-group {
flex-grow: 2; flex-grow: 2;
@include media-breakpoint-up($layout-bp) { @include media-breakpoint-up($size-bp) {
max-width: 450px; padding: 0 2rem;
max-width: 40%;
} }
.filters-mini-group { .filters-mini-group {
+6
View File
@@ -69,6 +69,12 @@ export default {
node.type = node.type === 'Textref' ? 'ref' : 'prod' node.type = node.type === 'Textref' ? 'ref' : 'prod'
} }
if (node.tags) {
node.tags = node.tags.map(tag => {
return { ...tag, name: tag.name[0].toUpperCase() + tag.name.slice(1) }
})
}
for (const relation of RELATIONS) { for (const relation of RELATIONS) {
if (relation in node && node[relation]) { if (relation in node && node[relation]) {
node[relation] = node[relation].map(subNode => { node[relation] = node[relation].map(subNode => {