Skip to content

Commit

Permalink
use class instead of space
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Nov 4, 2024
1 parent 018075e commit 5af1e71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/frontend/components/messages/SendMessageButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<!-- send button -->
<button @click="send" :disabled="!canSendMessage" type="button" class="my-auto inline-flex items-center rounded-l-md px-2.5 py-1.5 text-sm font-semibold text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2" :class="[ canSendMessage ? 'bg-blue-500 hover:bg-blue-400 focus-visible:outline-blue-500' : 'bg-gray-400 focus-visible:outline-gray-500 cursor-not-allowed']">
<span v-if="isSendingMessage">Sending...</span>
<span v-else>
<span v-else class="space-x-1">
<span>Send</span>
<span v-if="deliveryMethod === 'direct'"> (Direct Link)</span>
<span v-if="deliveryMethod === 'opportunistic'"> (Opportunistic)</span>
<span v-if="deliveryMethod === 'propagated'"> (Propagated)</span>
<span v-if="deliveryMethod === 'direct'">(Direct Link)</span>
<span v-if="deliveryMethod === 'opportunistic'">(Opportunistic)</span>
<span v-if="deliveryMethod === 'propagated'">(Propagated)</span>
</span>
</button>

Expand Down

0 comments on commit 5af1e71

Please sign in to comment.