Display more of the description. Remove debug log

This commit is contained in:
Cohee 2024-09-17 22:06:54 +03:00
parent 146e82e44a
commit a73b8077f6
2 changed files with 9 additions and 2 deletions

View File

@ -281,7 +281,6 @@ async function getHordeModels(force) {
return sortByWhitelisted(a, b) || sortByPopular(a, b) || sortByPerformance(a, b);
});
for (const model of models) {
console.log('getHordeModels', model);
const option = document.createElement('option');
option.value = model.name;
option.innerText = hordeModelTextString(model);
@ -362,7 +361,7 @@ function getHordeModelTemplate(option) {
const workerInfo = hordeModelQueueStateString(model);
const isPopular = model.tags?.includes('popular');
const descriptionDiv = description ? `<div style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">${description}</div>` : '';
const descriptionDiv = description ? `<div class="horde-model-description">${description}</div>` : '';
const tagSpans = tags.length > 0 &&
`${tags.map(tag => `<span class="tag tag_name">${tag}</span>`).join('')}</span>` || '';

View File

@ -3518,6 +3518,14 @@ grammarly-extension {
column-gap: 20px;
}
.horde-model-description {
-webkit-line-clamp: 3;
line-clamp: 3;
font-size: 0.9em;
overflow: hidden;
text-overflow: ellipsis;
}
.drag-handle {
cursor: grab;
/* Make the drag handle not selectable in most browsers */