This commit is contained in:
Baobhan Sith
2025-04-27 21:39:45 +08:00
parent 4c4f794c17
commit 2a2dea4d18
2 changed files with 4 additions and 4 deletions
@@ -181,9 +181,9 @@ const handleDelete = async (conn: ConnectionInfo) => {
</thead> </thead>
<tbody class="divide-y divide-border"> <tbody class="divide-y divide-border">
<tr v-for="conn in groupConnections" :key="conn.id" class="hover:bg-hover transition-colors duration-150"> <tr v-for="conn in groupConnections" :key="conn.id" class="hover:bg-hover transition-colors duration-150">
<td class="px-4 py-3 text-sm text-foreground whitespace-nowrap"> <td class="px-4 py-3 text-sm text-foreground whitespace-nowrap flex items-center">
<!-- Icon logic removed for now --> <i :class="['fas', conn.type === 'RDP' ? 'fa-desktop' : 'fa-terminal', 'mr-2 w-4 text-center text-text-secondary']"></i>
{{ conn.name }} <span>{{ conn.name }}</span>
</td> </td>
<td class="px-4 py-3 text-sm text-foreground whitespace-nowrap">{{ conn.host }}</td> <td class="px-4 py-3 text-sm text-foreground whitespace-nowrap">{{ conn.host }}</td>
<td class="px-4 py-3 text-sm text-foreground whitespace-nowrap">{{ conn.port }}</td> <td class="px-4 py-3 text-sm text-foreground whitespace-nowrap">{{ conn.port }}</td>
@@ -374,7 +374,7 @@ const scrollToHighlighted = async () => {
@click.right.prevent @click.right.prevent
@contextmenu.prevent="showContextMenu($event, conn)" @contextmenu.prevent="showContextMenu($event, conn)"
> >
<i class="fas fa-server mr-2.5 w-4 text-center text-text-secondary group-hover:text-primary" :class="{ 'text-white': conn.id === highlightedConnectionId }"></i> <i :class="['fas', conn.type === 'RDP' ? 'fa-desktop' : 'fa-server', 'mr-2.5 w-4 text-center text-text-secondary group-hover:text-primary', { 'text-white': conn.id === highlightedConnectionId }]"></i>
<span class="overflow-hidden text-ellipsis whitespace-nowrap flex-grow text-sm" :title="conn.name || conn.host"> <span class="overflow-hidden text-ellipsis whitespace-nowrap flex-grow text-sm" :title="conn.name || conn.host">
{{ conn.name || conn.host }} {{ conn.name || conn.host }}
</span> </span>