From d737aa196fcc69aa935704ee736575a372511526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no> Date: Wed, 7 Apr 2021 10:33:06 +0200 Subject: [PATCH] fikser meta#324 --- src/components/CompoundList.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/CompoundList.vue b/src/components/CompoundList.vue index e6bd0427..0189fc94 100644 --- a/src/components/CompoundList.vue +++ b/src/components/CompoundList.vue @@ -2,11 +2,13 @@ <li class="compound_list"> <ul> <DefElement :body="body.intro" v-if="body.intro" :dictionary="dictionary" /> - <li :key="index" v-for="(item, index) in body.elements"> - <router-link :to="'/' + dictionary + '/' + item.article_id + (item.definition_id ? '#def'+item.definition_id : '')" @click.native="article_link_click(item)"> - <span class="homograph" :key="index">{{item.lemmas[0].hgno ? String.fromCharCode(0x215f + item.lemmas[0].hgno) : ''}}</span> - {{item.lemmas[0].lemma}}; - </router-link> + <li + :key="index" + v-for="(item, index) in body.elements" + ><router-link + :to="'/' + dictionary + '/' + item.article_id + (item.definition_id ? '#def'+item.definition_id : '')" + @click.native="article_link_click(item)" + > {{item.lemmas[0].lemma}}</router-link> </li> </ul> </li> @@ -36,6 +38,10 @@ export default { display: inline; } + li.compound_list li:not(:last-child):not(:first-child):after { + content: ","; + } + ul { padding-left: 0px !important; } -- GitLab