Text sizing correction.

9b3552631a045342390d9435346b8ce0a3a8ee83

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

1 files changed, +38 -49Ignore whitespace
public/style.css+38 -49
@@ -5481,105 +5481,95 @@ body:not(.movingUI) .drawer-content.maximized {
54815481
54825482#user_avatar_block {
54835483 display: flex;
5484- flex-wrap: wrap; /* Ensures cards go to the next row if there's not enough space */
5484+ flex-wrap: wrap;
5485- gap: 10px; /* Adds space between cards */
5485+ gap: 10px;
54865486}
54875487
54885488/* Main structure for the model cards */
54895489.model-card {
54905490 display: flex;
5491- justify-content: space-between; /* Align the title and details across the card */
5491+ justify-content: space-between;
54925492 align-items: center; /* Center align the items vertically */
5493- padding: 15px; /* Padding around the content */
5493+ padding: 15px;
54945494 border: 1px solid #333; /* Border for the card */
54955495 border-radius: 8px; /* Rounded corners for the card */
54965496 background-color: #222; /* Card background color */
54975497 color: #fff; /* Text color */
54985498 margin: 7px; /* Space between cards */
54995499 width: calc(100% - 7px); /* Full width minus margin */
55005500 box-sizing: border-box; /* Include padding and border in the width */
55015501 transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, border 0.2s ease-in-out;
55025502}
55035503
55045504.model-card:hover {
55055505 transform: scale(1.02); /* 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}
55095509
5510-/* Highlight the selected model card */
55115510.model-card.selected {
55125511 border: 2px solid var(--okGreen70a); /* Add a blue border to indicate selection */
55135512 background-color: var(--okGreen70a); /* Slightly darker background for selected state */
55145513}
55155514
5516-/* Model title information */
55175515.model-info {
5518- flex: 1; /* Take up the remaining space */
5516+ flex: 1;
55195517 white-space: nowrap;
55205518 overflow: hidden;
55215519 text-overflow: ellipsis; /* Ellipsis for overflow text */
55225520}
55235521
55245522.model-title {
55255523 font-size: 16px--mainFontSize;
5526- font-weight: bold; /* Bold text for the model title */
5524+ font-weight: bold;
55275525 overflow: hidden;
55285526}
55295527
5530-/* Model details section */
55315528.model-details {
55325529 display: flex;
5533- flex-direction: column; /* Stack class and context length vertically */
5530+ flex-direction: column;
55345531 align-items: flex-end; /* Align details to the end (right) */
5535- text-align: right; /* Right-aligned text for class and context length */
5532+ text-align: right;
5536- min-width: 120px; /* Minimum width to prevent excessive squeezing */
5533+ min-width: 120px;
55375534}
55385535
55395536.model-class, .model-context-length {
5540- font-size: 14px; /* Smaller font size for details */
5537+ font-size: calc(--mainFontSize - 3);
55415538}
55425539
55435540.model-class {
5544- margin-bottom: 5px; /* Space between class and context length */
5541+ margin-bottom: 5px;
55455542}
55465543
5547-/* Grid-view layout for the card container */
55485544#model_card_block.grid-view {
5549- /* grid-row: 1 / span 2; Span two rows */
55505545 grid-template-columns: repeat(2, 1fr);
55515546 display: flex;
5552- flex-wrap: wrap; /* Cards wrap onto new lines when necessary */
5547+ flex-wrap: wrap;
5553- gap: 5px; /* Space between grid items */
5548+ gap: 5px;
55545549 justify-content: flex-start; /* Align cards to the left */
55555550}
55565551
55575552/* Grid-view card */
55585553#model_card_block.grid-view .model-card {
5559- flex-direction: column; /* Stack title, class, and context length vertically for grid */
5554+ flex-direction: column;
55605555 flex: 1 1 calc(50% - 30px); /* 3 cards per row with spacing */
5561- /* margin-bottom: 10px; */
55625556}
55635557
5564-/* Ensure the search bar takes most of the width */
55655558#model_search_bar {
55665559 width: 15ch;
55675560 flex-grow: 0;
5568- /* min-width: 10ch; */
55695561 align-self: center;
55705562}
55715563
5572-/* Sort dropdown should be auto-sized based on its content */
55735564#model_sort_order {
55745565 width: auto;
55755566 flex-shrink: 0;
55765567 align-self: center;
55775568}
55785569
5579-/* Grid toggle button */
55805570#model_grid_toggle {
55815571 flex-shrink: 0;
5582- width: auto; /* Keep default button size */
5572+ width: auto;
55835573 cursor: pointer;
55845574}
55855575
@@ -5590,23 +5580,22 @@ body:not(.movingUI) .drawer-content.maximized {
55905580 align-self: center;
55915581}
55925582
5593-/* Media query for mobile devices */
55945583@media (max-width: 768px) {
55955584 .model-card {
5596- flex-direction: column; /* Stack content vertically on small screens */
5585+ flex-direction: column;
5597- align-items: stretch; /* Stretch items to take full width */
5586+ align-items: stretch;
55985587 }
55995588
56005589 .model-info, .model-details {
56015590 width: 100%; /* Take full width */
56025591 text-align: left; /* Left-align text */
56035592 }
56045593
56055594 #model_search_bar {
5606- width: 100%; /* Take full width on small screens */
5595+ width: 100%;
56075596 }
56085597
56095598 #model_sort_order, #model_grid_toggle {
5610- margin-top: 10px; /* Add some space above these elements */
5599+ margin-top: 10px;
56115600 }
56125601}