diff --git a/src/components/CompoundList.vue b/src/components/CompoundList.vue index e6bd0427584c49948d21526cc6a19fee45b06816..0189fc94ac59e5d6d45c91470bcf2b671b372738 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; }