Skip to content

Commit 06dfff3

Browse files
author
Lasim
committed
fix(frontend): improve GitHub URL display and handling in featured servers
1 parent a05585d commit 06dfff3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

services/frontend/src/components/mcp-server/FeaturedMcpServers.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,18 @@ onMounted(() => {
148148
<span class="sr-only">{{ t('mcpInstallations.view.fields.repository') }}</span>
149149
<Github class="h-4 w-4 text-gray-400" aria-hidden="true" />
150150
</dt>
151-
<dd class="text-sm/6 font-medium text-gray-900">
151+
<dd class="text-sm/6 font-medium text-gray-900 min-w-0 flex-1">
152152
<a
153153
v-if="server.github_url"
154154
:href="server.github_url"
155155
target="_blank"
156156
rel="noopener noreferrer"
157-
class="hover:underline"
157+
class="hover:underline truncate block"
158+
:title="server.github_url.replace('https://github.com/', '')"
158159
>
159160
{{ server.github_url.replace('https://github.com/', '') }}
160161
</a>
161-
<span v-else class="text-gray-500">{{ t('mcpInstallations.view.values.notProvided') }}</span>
162+
<span v-else class="text-gray-500 truncate block">{{ t('mcpInstallations.view.values.notProvided') }}</span>
162163
</dd>
163164
</div>
164165
<div class="mt-4 flex w-full flex-none gap-x-4 items-center px-6">

0 commit comments

Comments
 (0)