mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-10 00:50:43 +01:00
Display more of the description. Remove debug log
This commit is contained in:
parent
146e82e44a
commit
a73b8077f6
@ -281,7 +281,6 @@ async function getHordeModels(force) {
|
|||||||
return sortByWhitelisted(a, b) || sortByPopular(a, b) || sortByPerformance(a, b);
|
return sortByWhitelisted(a, b) || sortByPopular(a, b) || sortByPerformance(a, b);
|
||||||
});
|
});
|
||||||
for (const model of models) {
|
for (const model of models) {
|
||||||
console.log('getHordeModels', model);
|
|
||||||
const option = document.createElement('option');
|
const option = document.createElement('option');
|
||||||
option.value = model.name;
|
option.value = model.name;
|
||||||
option.innerText = hordeModelTextString(model);
|
option.innerText = hordeModelTextString(model);
|
||||||
@ -362,7 +361,7 @@ function getHordeModelTemplate(option) {
|
|||||||
|
|
||||||
const workerInfo = hordeModelQueueStateString(model);
|
const workerInfo = hordeModelQueueStateString(model);
|
||||||
const isPopular = model.tags?.includes('popular');
|
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 &&
|
const tagSpans = tags.length > 0 &&
|
||||||
`${tags.map(tag => `<span class="tag tag_name">${tag}</span>`).join('')}</span>` || '';
|
`${tags.map(tag => `<span class="tag tag_name">${tag}</span>`).join('')}</span>` || '';
|
||||||
|
|
||||||
|
@ -3518,6 +3518,14 @@ grammarly-extension {
|
|||||||
column-gap: 20px;
|
column-gap: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.horde-model-description {
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
|
line-clamp: 3;
|
||||||
|
font-size: 0.9em;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
.drag-handle {
|
.drag-handle {
|
||||||
cursor: grab;
|
cursor: grab;
|
||||||
/* Make the drag handle not selectable in most browsers */
|
/* Make the drag handle not selectable in most browsers */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user