Display more of the description. Remove debug log

a73b8077f6b6a1d9027d3c798c5936b1c3a347f4

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +9 -2Showing whitespace changes
public/scripts/horde.js+1 -2
@@ -281,7 +281,6 @@ async function getHordeModels(force) {
281281 return sortByWhitelisted(a, b) || sortByPopular(a, b) || sortByPerformance(a, b);
282282 });
283283 for (const model of models) {
284- console.log('getHordeModels', model);
285284 const option = document.createElement('option');
286285 option.value = model.name;
287286 option.innerText = hordeModelTextString(model);
@@ -362,7 +361,7 @@ function getHordeModelTemplate(option) {
362361
363362 const workerInfo = hordeModelQueueStateString(model);
364363 const isPopular = model.tags?.includes('popular');
365364 const descriptionDiv = description ? `<div styleclass="whitehorde-space: nowrap; overflow: hidden; textmodel-overflow: ellipsis;description">${description}</div>` : '';
366365 const tagSpans = tags.length > 0 &&
367366 `${tags.map(tag => `<span class="tag tag_name">${tag}</span>`).join('')}</span>` || '';
368367
public/style.css+8 -0
@@ -3518,6 +3518,14 @@ grammarly-extension {
35183518 column-gap: 20px;
35193519}
35203520
3521+.horde-model-description {
3522+ -webkit-line-clamp: 3;
3523+ line-clamp: 3;
3524+ font-size: 0.9em;
3525+ overflow: hidden;
3526+ text-overflow: ellipsis;
3527+}
3528+
35213529.drag-handle {
35223530 cursor: grab;
35233531 /* Make the drag handle not selectable in most browsers */