From 18acc1554f4c7fd6402a32b69533de1c16143a6f Mon Sep 17 00:00:00 2001 From: Henrik Askjer <henrik.askjer@uib.no> Date: Wed, 12 Jan 2022 15:24:28 +0100 Subject: [PATCH] show full language instead of codes --- src/App.vue | 4 ++++ src/components/Autocomplete.vue | 4 ++-- src/components/DictionaryView.vue | 6 ++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 1814b22a..0520c174 100644 --- a/src/App.vue +++ b/src/App.vue @@ -269,4 +269,8 @@ th[class="infl-group"] { border-radius: 28px !important; } +.theme--light.v-label, .theme--light.v-subheader, .transparent-text{ + color: rgba(0, 0, 0, 0.7) +} + </style> diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue index c416c81b..42d4adc9 100644 --- a/src/components/Autocomplete.vue +++ b/src/components/Autocomplete.vue @@ -75,8 +75,8 @@ <span class="searchLemma"> {{data.item.match}} </span> - <span v-if="(get_lang()=='bm,nn')"> - ({{["bm","nn","bm,nn"][data.item.lang-1]}}) + <span class="dict-parentheses" v-if="(get_lang()=='bm,nn')"> + ({{["bokmål","nynorsk","bokmål, nynorsk"][data.item.lang-1]}}) </span> </span> diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 68749529..86e2aba8 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -83,7 +83,7 @@ <template v-for="(item, index) in similar"> <v-list-item :key="index"> <router-link :to="generate_path(item[0])" @click.native="suggestion_link(item[0])">{{item[0]}}</router-link> - <span class="dict_label" v-if="lang=='bm,nn'">{{["bokmål","nynorsk","bokmål, nynorsk"][item[1]-1]}}</span> + <span class="dict-parentheses" v-if="lang=='bm,nn'"> ({{["bokmål","nynorsk","bokmål, nynorsk"][item[1]-1]}})</span> </v-list-item> </template> </v-list> @@ -737,8 +737,10 @@ li.suggestion { max-width: 40%; } -.dict_label { +.dict-parentheses { font-style: italic; + color: rgba(0,0,0,0.6); + font-size: 85%; } -- GitLab