Skip to content

Commit

Permalink
Fix help view list entries wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Jun 14, 2024
1 parent f5ab2a3 commit ab39839
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions Tekst-Web/src/views/HelpView.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { NButton, NSpin, NInput, NIcon } from 'naive-ui';
import { NSpin, NInput, NIcon } from 'naive-ui';
import HelpButtonWidget from '@/components/HelpButtonWidget.vue';
import { useHelp } from '@/composables/help';
import { computed, onMounted, ref } from 'vue';
Expand Down Expand Up @@ -73,23 +73,16 @@ watch(
</div>

<div class="content-block">
<ul
v-if="helpTextsFiltered"
style="
display: flex;
flex-direction: column;
list-style-type: circle;
margin: var(--content-gap) 0;
"
>
<ul v-if="helpTextsFiltered" style="list-style-type: circle">
<li
v-for="[textKey, text] of helpTextsFiltered"
:key="textKey"
:title="text.title || textKey"
style="margin-bottom: 0.4rem"
>
<n-button text @click="(e) => handleClick(e, textKey)">
<span class="help-topic" @click="(e) => handleClick(e, textKey)">
{{ text.title || textKey }}
</n-button>
</span>
</li>
</ul>
<n-spin v-else-if="loading" class="centered-spinner" />
Expand All @@ -111,4 +104,13 @@ watch(
</generic-modal>
</template>

<style scoped></style>
<style scoped>
.help-topic {
cursor: pointer;
transition: color 0.2s;
}

.help-topic:hover {
color: var(--accent-color);
}
</style>

0 comments on commit ab39839

Please sign in to comment.