Skip to content
Snippets Groups Projects
Commit 8fd58c06 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

right aligned arrow on inflection button

parent 19728f02
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,8 @@
</span>
<div class="inflection-wrapper" v-if="inflected">
<v-btn class="show-inflection" width="150px" rounded depressed small @click.native="toggle" :class="$vuetify.breakpoint.name">
<span>{{inflection_button_text}}</span>
<v-btn class="show-inflection" width="160px" rounded depressed small @click.native="toggle" :class="$vuetify.breakpoint.name">
<span>{{inflection_button_text}}</span><span class = "inflection-arrow">{{inflection_arrow}}</span>
</v-btn>
<div class="inflection-canvas" v-if="inflection_expanded">
<inflectionTable :lemmaList="lemmas_with_word_class_and_lang" :mq="$vuetify.breakpoint.name" />
......@@ -73,10 +73,13 @@ export default {
},
inflection_button_text: function() {
return {
"bob": {true: "Se bøyning", false: "Skjul bøyning"},
"nob": {true: "Sjå bøying", false: "Skjul bøying"}
"bob": {false: "Se bøyning", true: "Skjul bøyning"},
"nob": {false: "Sjå bøying", true: "Skjul bøying"}
}[this.dictionary][this.inflection_expanded]
},
inflection_arrow: function() {
return this.inflection_expanded? "" : ""
},
group_list: function() {
return helpers.group_list(this.lemmas, this.dictionary)
},
......@@ -175,6 +178,12 @@ article h2.secondary_header {
}
.inflection-arrow {
position: absolute;
right: -5px;
margin-left: 3px;
}
@keyframes open {
0% {
opacity: 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment