Disabled text wrapping on the torrent list table to enhance mobile view (#23)

This commit is contained in:
Elias Benbourenane
2025-01-28 21:00:41 -05:00
committed by GitHub
parent 530de20276
commit 092a028ad9

View File

@@ -37,8 +37,8 @@
<script> <script>
const torrentRowTemplate = (torrent) => ` const torrentRowTemplate = (torrent) => `
<tr> <tr>
<td class="text-break">${torrent.name}</td> <td class="text-nowrap text-truncate overflow-hidden" style="max-width: 350px;" title="${torrent.name}">${torrent.name}</td>
<td>${formatBytes(torrent.size)}</td> <td class="text-nowrap">${formatBytes(torrent.size)}</td>
<td style="min-width: 150px;"> <td style="min-width: 150px;">
<div class="progress" style="height: 8px;"> <div class="progress" style="height: 8px;">
<div class="progress-bar" role="progressbar" <div class="progress-bar" role="progressbar"
@@ -59,7 +59,7 @@
</button> </button>
</td> </td>
</tr> </tr>
`; `;
function formatBytes(bytes) { function formatBytes(bytes) {
if (!bytes) return '0 B'; if (!bytes) return '0 B';