-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2305 from FAIRsharing/record_tooltips_2295
Record page tooltips
- Loading branch information
Showing
32 changed files
with
611 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,41 @@ | ||
<template> | ||
<div class="d-flex flex-row mt-4 min-height-40"> | ||
<b class="width-15-percent-flex">Description</b> | ||
<p class="ma-0 full-width ml-md-12 ml-13 text-justify"> | ||
<span | ||
class="d-flex align-baseline width-15-percent-flex" | ||
> | ||
<v-tooltip bottom> | ||
<template #activator="{ on }"> | ||
<v-icon | ||
class="mr-2" | ||
size="15" | ||
v-on="on" | ||
> | ||
fa-question-circle | ||
</v-icon> | ||
</template> | ||
{{ recordTooltips['description'] }} | ||
</v-tooltip> | ||
<b>Description</b> | ||
</span> | ||
<p | ||
class="ma-0 full-width ml-md-12 ml-8" | ||
:class="{'text-end' : $vuetify.breakpoint.smAndDown}" | ||
> | ||
{{ getField('description') | capitalize }} | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import {mapGetters} from "vuex"; | ||
import {mapGetters, mapState} from "vuex"; | ||
import stringUtils from "@/utils/stringUtils"; | ||
export default { | ||
name: "Description", | ||
mixins: [stringUtils], | ||
computed: { | ||
...mapGetters("record", ["getField"]), | ||
...mapState("editor", ["recordTooltips"]), | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.