Skip to content

Commit

Permalink
fixes nav for langs
Browse files Browse the repository at this point in the history
  • Loading branch information
userXinos committed Nov 10, 2023
1 parent 22e610c commit 8be8f28
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/components/TheNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
<div>
<div :class="{'selected': (selected == index) }">
<div class="icon" />
<h2 class="name">{{ $te(section.text.locKey) ? $t(section.text.locKey) : '' }}</h2>
<h2
class="name"
:loc-key="section.text.locKey"
>{{ $te(section.text.locKey) ? $t(section.text.locKey) : '' }}</h2>
</div>

<TransitionGroup
Expand Down Expand Up @@ -96,9 +99,6 @@ $selected-color: $border-color;
display: inline-block;
margin: 10px;
&:lang('zh-si') {
width: 90px;
}
@media screen and (max-width: $mv) {
display: block;
margin: 0;
Expand Down Expand Up @@ -129,6 +129,18 @@ $selected-color: $border-color;
background-position: right;
}
}
h2 {
&:lang('zh-si'), &:lang('ko') {
width: 60px;
}
&:lang('jp') {
width: 120px;
}
&[loc-key="HS_COMPENDIUM"] {
width: auto;
}
}
}
.selected {
Expand Down

0 comments on commit 8be8f28

Please sign in to comment.