Ui bug Fixes

fa52fb4ae6c318f49c3477b2ac008da1d7d78b03

DarokCx <77368869+DarokCx@users.noreply.github.com>

2 files changed, +9 -6Showing whitespace changes
public/scripts/textgen-models.js+3 -2
@@ -4,6 +4,7 @@ import { textgenerationwebui_settings as textgen_settings, textgen_types } from
44import { tokenizers } from './tokenizers.js';
55import { renderTemplateAsync } from './templates.js';
66import { POPUP_TYPE, callGenericPopup } from './popup.js';
7+import { PAGINATION_TEMPLATE } from './utils.js';
78
89let mancerModels = [];
910let togetherModels = [];
@@ -306,11 +307,11 @@ export async function loadFeatherlessModels(data) {
306307 pageRange: 1,
307308 pageNumber: 1,
308309 showPageNumbers: true,
309310 showSizeChanger: truefalse,
310311 prevText: '<',
311312 nextText: '>',
312313 formatNavigator: function (currentPage, totalPage) {
313314 return (currentPage - 1) * perPage + 1 + 'Page - ' + currentPage * perPage + ' of ' + totalPage * perPage;
314315 },
315316 showNavigator: true,
316317 callback: function (modelsOnPage) {
public/style.css+6 -4
@@ -5502,7 +5502,7 @@ body:not(.movingUI) .drawer-content.maximized {
55025502}
55035503
55045504.model-card:hover {
55055505 transform: scale(1.05025); /* Grow the card slightly on hover */
55065506 background-color: #444; /* Highlight background on hover */
55075507 transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out; /* Smooth transition */
55085508}
@@ -5546,7 +5546,8 @@ body:not(.movingUI) .drawer-content.maximized {
55465546
55475547/* Grid-view layout for the card container */
55485548#model_card_block.grid-view {
55495549 /* grid-row: 1 / span 2; /* Span two rows */
5550+ grid-template-columns: repeat(2, 1fr);
55505551 display: flex;
55515552 flex-wrap: wrap; /* Cards wrap onto new lines when necessary */
55525553 gap: 15px; /* Space between grid items */
@@ -5562,8 +5563,9 @@ body:not(.movingUI) .drawer-content.maximized {
55625563
55635564/* Ensure the search bar takes most of the width */
55645565#model_search_bar {
55655566 flex-growwidth: 115ch;
55665567 minflex-widthgrow: 10ch0;
5568+ /* min-width: 10ch; */
55675569 align-self: center;
55685570}
55695571