Skip to content

Commit 1be2675

Browse files
gguf-viewer: layout
1 parent 582a38b commit 1be2675

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed

tools/gguf-viewer/public/architecture.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@
597597
statisticsButton.textContent = "Statistics";
598598
actions.appendChild(statisticsButton);
599599

600-
li.appendChild(actions);
600+
header.appendChild(actions);
601601
}
602602
return li;
603603
}
@@ -823,12 +823,6 @@
823823
navControls.className = "architecture-block-nav__controls";
824824
navContainer.appendChild(navControls);
825825

826-
const prevButton = document.createElement("button");
827-
prevButton.type = "button";
828-
prevButton.className = "architecture-block-nav__button";
829-
prevButton.textContent = "Prev";
830-
navControls.appendChild(prevButton);
831-
832826
const selectLabel = document.createElement("label");
833827
selectLabel.className = "architecture-block-nav__label";
834828
selectLabel.textContent = "Block";
@@ -843,9 +837,13 @@
843837
selectLabel.appendChild(select);
844838
navControls.appendChild(selectLabel);
845839

840+
const prevButton = document.createElement("button");
841+
prevButton.type = "button";
842+
prevButton.textContent = "Prev";
843+
navControls.appendChild(prevButton);
844+
846845
const nextButton = document.createElement("button");
847846
nextButton.type = "button";
848-
nextButton.className = "architecture-block-nav__button";
849847
nextButton.textContent = "Next";
850848
navControls.appendChild(nextButton);
851849

tools/gguf-viewer/public/viewer.css

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -555,19 +555,6 @@ select:focus {
555555
padding: 0.15rem 0.4rem;
556556
border-radius: 4px;
557557
}
558-
.architecture-block-nav__button {
559-
background: #10213d;
560-
border: 1px solid #20355c;
561-
color: #d3dbf7;
562-
padding: 0.2rem 0.6rem;
563-
border-radius: 4px;
564-
font-size: 0.72rem;
565-
cursor: pointer;
566-
}
567-
.architecture-block-nav__button:disabled {
568-
opacity: 0.5;
569-
cursor: default;
570-
}
571558
.architecture-block__title {
572559
font-size: 0.82rem;
573560
font-weight: 600;
@@ -609,9 +596,10 @@ select:focus {
609596
color: #b7c6e6;
610597
}
611598
.architecture-tensor__actions {
612-
display: flex;
613-
flex-wrap: wrap;
599+
display: inline-flex;
614600
gap: 0.3rem;
601+
justify-content: flex-end;
602+
margin-left: auto;
615603
}
616604
.architecture-tensor--mismatch {
617605
border-left-color: #f59f80;

0 commit comments

Comments
 (0)