UPD: Feedback type buttons
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
:src="icon" alt="connection-type-icon"
|
||||
class="w-24 size-w mb-2"
|
||||
:class="{'invert': selected}">
|
||||
<ScrambleText ref="title" class="text-xs text-wrap" :text="title" />
|
||||
<ScrambleText ref="title" :resize="false" class="text-xs text-wrap" :text="title" />
|
||||
</button>
|
||||
</template>
|
||||
<script setup>
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<button
|
||||
class="flex-1 flex flex-col justify-center items-center py-2"
|
||||
class="flex-1 flex flex-col items-center py-2"
|
||||
:class="{'text-black bg-zinc-200 hover:bg-zinc-100': selected,
|
||||
'hover:bg-zinc-800 text-muted-foreground' : !selected}"
|
||||
@click="$emit('select'); $refs.title.scramble()">
|
||||
<img
|
||||
draggable="false"
|
||||
:src="icon" alt="connection-type-icon"
|
||||
class="p-4"
|
||||
class="w-16 py-2"
|
||||
:class="{'invert': selected}">
|
||||
<ScrambleText ref="title" class="text-xs text-wrap" :text="title" />
|
||||
<ScrambleText ref="title" :resize="false" class="text-xs text-wrap p-1" :text="title" />
|
||||
</button>
|
||||
</template>
|
||||
<script setup>
|
||||
|
||||
Reference in New Issue
Block a user