Skip to content

Commit 8e24188

Browse files
authored
Fixed and issue causing overflow in layout on ApiTokenManager page. (#1198)
1 parent 60299a7 commit 8e24188

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

stubs/inertia/resources/js/Pages/API/Partials/ApiTokenManager.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ const deleteApiToken = () => {
142142
<template #content>
143143
<div class="space-y-6">
144144
<div v-for="token in tokens" :key="token.id" class="flex items-center justify-between">
145-
<div>
145+
<div class="break-all">
146146
{{ token.name }}
147147
</div>
148148

149-
<div class="flex items-center">
149+
<div class="flex items-center ml-2">
150150
<div v-if="token.last_used_ago" class="text-sm text-gray-400">
151151
Last used {{ token.last_used_ago }}
152152
</div>
@@ -181,7 +181,7 @@ const deleteApiToken = () => {
181181
Please copy your new API token. For your security, it won't be shown again.
182182
</div>
183183

184-
<div v-if="$page.props.jetstream.flash.token" class="mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500">
184+
<div v-if="$page.props.jetstream.flash.token" class="mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500 break-all">
185185
{{ $page.props.jetstream.flash.token }}
186186
</div>
187187
</template>

stubs/livewire/resources/views/api/api-token-manager.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@
6464
<div class="space-y-6">
6565
@foreach ($this->user->tokens->sortBy('name') as $token)
6666
<div class="flex items-center justify-between">
67-
<div>
67+
<div class="break-all">
6868
{{ $token->name }}
6969
</div>
7070

71-
<div class="flex items-center">
71+
<div class="flex items-center ml-2">
7272
@if ($token->last_used_at)
7373
<div class="text-sm text-gray-400">
7474
{{ __('Last used') }} {{ $token->last_used_at->diffForHumans() }}
@@ -105,7 +105,7 @@
105105
</div>
106106

107107
<x-jet-input x-ref="plaintextToken" type="text" readonly :value="$plainTextToken"
108-
class="mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500 w-full"
108+
class="mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500 w-full break-all"
109109
autofocus autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
110110
@showing-token-modal.window="setTimeout(() => $refs.plaintextToken.select(), 250)"
111111
/>

0 commit comments

Comments
 (0)