add ButtonUrl component & misc fixes
This commit is contained in:
@@ -137,7 +137,9 @@ export default {
|
||||
width: 100%;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
max-height: 80vh;
|
||||
}
|
||||
|
||||
font: {
|
||||
|
||||
@@ -10,22 +10,23 @@
|
||||
</div>
|
||||
|
||||
<figcaption class="mt-3">
|
||||
<p class="m-0">
|
||||
<strong>{{ toCommaList(node.authors) }}</strong>,
|
||||
<em v-html="' ' + trim(node.title)" />
|
||||
<br class="d-none d-md-inline">
|
||||
{{ node.date.start }}
|
||||
</p>
|
||||
<node-view-title :node="node" tag="p" class="m-0" />
|
||||
</figcaption>
|
||||
</figure>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { trim, toCommaList } from '@/helpers/common'
|
||||
import { NodeViewTitle } from '@/components/nodes'
|
||||
|
||||
|
||||
export default {
|
||||
name: 'NodeViewFigure',
|
||||
|
||||
components: {
|
||||
NodeViewTitle
|
||||
},
|
||||
|
||||
props: {
|
||||
node: { type: Object, required: true }
|
||||
},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<node-view-title
|
||||
:node="node" tag="h4"
|
||||
block edition
|
||||
block edition url
|
||||
class="mr-auto"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,10 @@
|
||||
class="node-view-title-container"
|
||||
>
|
||||
<slot name="default" />
|
||||
<span><strong>{{ toCommaList(node.authors) }}</strong>,</span>
|
||||
<span>
|
||||
<strong>{{ toCommaList(node.authors) }}</strong>,
|
||||
<button-url v-if="url && node.piece" :link="node.piece" />
|
||||
</span>
|
||||
<span>
|
||||
<span v-if="node.preTitle" v-html="' ' + trim(node.preTitle) + ','" />
|
||||
<em v-html="' ' + trim(node.italTitle || node.title) || 'pas de titre ital'" />
|
||||
@@ -39,7 +42,8 @@ export default {
|
||||
link: { type: Boolean, default: false },
|
||||
block: { type: Boolean, default: false },
|
||||
edition: { type: Boolean, default: false },
|
||||
noDate: { type: Boolean, default: false }
|
||||
noDate: { type: Boolean, default: false },
|
||||
url: { type: Boolean, default: false }
|
||||
},
|
||||
|
||||
data () {
|
||||
|
||||
Reference in New Issue
Block a user