Spaces:
Running
Running
Added entire galaxy layout and scrollbar on mainpanel
Browse files- compressed_galaxy.json.gz +3 -0
- css/style.css +76 -0
- index.html +1 -1
- js/main.js +1 -0
compressed_galaxy.json.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a9b5b5413a48cd47850d76049e9e57805fae099d78f8a425abc3dd98af077b6d
|
3 |
+
size 19985280
|
css/style.css
CHANGED
@@ -686,3 +686,79 @@ display: none;
|
|
686 |
right: 8px;
|
687 |
}
|
688 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
686 |
right: 8px;
|
687 |
}
|
688 |
|
689 |
+
|
690 |
+
/* Make mainpanel fully scrollable */
|
691 |
+
#mainpanel {
|
692 |
+
max-height: 90vh; /* Reduce from 100vh to leave space for bottom elements */
|
693 |
+
overflow-y: auto; /* Enable vertical scrolling */
|
694 |
+
overflow-x: hidden; /* Prevent horizontal scrolling */
|
695 |
+
box-sizing: border-box; /* Include padding in the element's total width and height */
|
696 |
+
padding-bottom: 20px; /* Add padding at the bottom to ensure last element is visible */
|
697 |
+
}
|
698 |
+
|
699 |
+
/* Ensure all dropdowns in the panel stay within the scrollable area */
|
700 |
+
#attributeselect .list,
|
701 |
+
#coloringselect .list,
|
702 |
+
#atlasselect .list {
|
703 |
+
position: absolute;
|
704 |
+
margin-left: 0;
|
705 |
+
margin-top: 0;
|
706 |
+
z-index: 100;
|
707 |
+
width: 226px;
|
708 |
+
left: 0;
|
709 |
+
top: 100%; /* Position below the select button */
|
710 |
+
}
|
711 |
+
|
712 |
+
/* Fix for the developer container to ensure it's always visible */
|
713 |
+
#developercontainer {
|
714 |
+
position: fixed;
|
715 |
+
bottom: 0;
|
716 |
+
left: 25px;
|
717 |
+
margin-bottom: 5px;
|
718 |
+
background-color: rgba(255, 255, 255, 0.8);
|
719 |
+
padding: 5px;
|
720 |
+
border-radius: 3px;
|
721 |
+
max-width: 80%;
|
722 |
+
z-index: 50;
|
723 |
+
font-size: 11px;
|
724 |
+
line-height: 1.3;
|
725 |
+
}
|
726 |
+
|
727 |
+
/* Add media query for smaller displays */
|
728 |
+
@media screen and (max-height: 700px) {
|
729 |
+
#mainpanel {
|
730 |
+
max-height: 85vh; /* Make panel even smaller on small screens */
|
731 |
+
}
|
732 |
+
|
733 |
+
#developercontainer {
|
734 |
+
max-width: 70%; /* Make developer info smaller on small screens */
|
735 |
+
font-size: 10px;
|
736 |
+
}
|
737 |
+
}
|
738 |
+
|
739 |
+
/* For very small screens */
|
740 |
+
@media screen and (max-height: 500px) {
|
741 |
+
#developercontainer {
|
742 |
+
max-width: 60%;
|
743 |
+
font-size: 9px;
|
744 |
+
}
|
745 |
+
}
|
746 |
+
|
747 |
+
/* Improve scrollbar appearance */
|
748 |
+
#mainpanel::-webkit-scrollbar {
|
749 |
+
width: 8px;
|
750 |
+
}
|
751 |
+
|
752 |
+
#mainpanel::-webkit-scrollbar-track {
|
753 |
+
background: #f1f1f1;
|
754 |
+
border-radius: 4px;
|
755 |
+
}
|
756 |
+
|
757 |
+
#mainpanel::-webkit-scrollbar-thumb {
|
758 |
+
background: #888;
|
759 |
+
border-radius: 4px;
|
760 |
+
}
|
761 |
+
|
762 |
+
#mainpanel::-webkit-scrollbar-thumb:hover {
|
763 |
+
background: #555;
|
764 |
+
}
|
index.html
CHANGED
@@ -34,7 +34,7 @@
|
|
34 |
<div class="info cf">
|
35 |
<dl>
|
36 |
<dt class="moreinformation"></dt>
|
37 |
-
<dd class="line"><a href="#information" class="line fb">More about
|
38 |
</dl>
|
39 |
</div>
|
40 |
<div id="legend">
|
|
|
34 |
<div class="info cf">
|
35 |
<dl>
|
36 |
<dt class="moreinformation"></dt>
|
37 |
+
<dd class="line"><a href="#information" class="line fb">More about the Model Atlas</a></dd>
|
38 |
</dl>
|
39 |
</div>
|
40 |
<div id="legend">
|
js/main.js
CHANGED
@@ -824,6 +824,7 @@ function AtlasSelector(a) {
|
|
824 |
function getAvailableAtlases() {
|
825 |
return [
|
826 |
{ name: "Modalities Atlas", file: "compressed_modalities_data.json.gz" },
|
|
|
827 |
{ name: "Large NLP Atlas", file: "compressed_large_nlp_data.json.gz" },
|
828 |
];
|
829 |
}
|
|
|
824 |
function getAvailableAtlases() {
|
825 |
return [
|
826 |
{ name: "Modalities Atlas", file: "compressed_modalities_data.json.gz" },
|
827 |
+
{ name: "Hugging Face Galaxy", file: "compressed_galaxy.json.gz" },
|
828 |
{ name: "Large NLP Atlas", file: "compressed_large_nlp_data.json.gz" },
|
829 |
];
|
830 |
}
|