Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Change instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbo committed Oct 31, 2024
1 parent 3a6aec9 commit 7d71a43
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions domains/grid/components/AddWidgetBasic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,26 +100,35 @@ const hasInstructions = computed(() => widgetInstructions.value !== '-')
}}

<!-- Instructions -->
<template v-if="hasInstructions">
<span
v-if="isInstructionsVisible"
class="cursor-pointer text-blue-60 underline hover:text-blue-50"
@click="isInstructionsVisible = !isInstructionsVisible"
>Hide instructions</span
>
<span
v-else
class="cursor-pointer text-blue-60 underline hover:text-blue-50"
@click="isInstructionsVisible = !isInstructionsVisible"
>Show instructions</span
>
<div v-if="hasInstructions" class="mt-2">
<div class="flex items-center">
<span
v-if="isInstructionsVisible"
class="cursor-pointer text-purple-51 underline hover:text-purple-41"
@click="isInstructionsVisible = !isInstructionsVisible"
>Hide instructions</span
>
<span
v-else
class="cursor-pointer text-purple-51 underline hover:text-purple-41"
@click="isInstructionsVisible = !isInstructionsVisible"
>Show instructions</span
>
<lukso-icon
name="arrow-down-sm"
color="purple-51"
:class="{
'rotate-180 transition': isInstructionsVisible,
}"
></lukso-icon>
</div>
<div
v-if="isInstructionsVisible"
class="mt-4 animate-fade-in whitespace-pre-line font-600 break-word"
>
{{ widgetInstructions }}
</div>
</template>
</div>
</div>

<!-- Content -->
Expand Down

0 comments on commit 7d71a43

Please sign in to comment.