Spaces:
Sleeping
Sleeping
adamelliotfields
commited on
Commit
•
212624a
1
Parent(s):
1fdf076
Gallery margin top
Browse files- app.css +1 -5
- app.js +1 -0
- partials/intro.html +1 -1
app.css
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
overflow-y: auto;
|
30 |
}
|
31 |
.gallery, .gallery .grid-wrap {
|
32 |
-
height: calc(100vh -
|
33 |
max-height: none;
|
34 |
}
|
35 |
|
@@ -37,10 +37,6 @@
|
|
37 |
max-width: 42px;
|
38 |
}
|
39 |
|
40 |
-
.image-container {
|
41 |
-
max-height: calc(100vh - 480px);
|
42 |
-
}
|
43 |
-
|
44 |
#intro {
|
45 |
margin-bottom: 8px !important;
|
46 |
}
|
|
|
29 |
overflow-y: auto;
|
30 |
}
|
31 |
.gallery, .gallery .grid-wrap {
|
32 |
+
height: calc(100vh - 400px);
|
33 |
max-height: none;
|
34 |
}
|
35 |
|
|
|
37 |
max-width: 42px;
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
40 |
#intro {
|
41 |
margin-bottom: 8px !important;
|
42 |
}
|
app.js
CHANGED
@@ -6,6 +6,7 @@
|
|
6 |
const updateMenu = () => {
|
7 |
const isOpen = menuButton.classList.contains("open");
|
8 |
content.style.display = isOpen ? "none" : "flex";
|
|
|
9 |
};
|
10 |
|
11 |
const observer = new MutationObserver(updateMenu);
|
|
|
6 |
const updateMenu = () => {
|
7 |
const isOpen = menuButton.classList.contains("open");
|
8 |
content.style.display = isOpen ? "none" : "flex";
|
9 |
+
content.style.marginTop = isOpen ? "0" : "40px";
|
10 |
};
|
11 |
|
12 |
const observer = new MutationObserver(updateMenu);
|
partials/intro.html
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
<a href="https://huggingface.co/spaces/adamelliotfields/diffusion-flux" target="_blank" rel="noopener noreferrer">FLUX.1</a>
|
15 |
<a href="https://huggingface.co/spaces/adamelliotfields/diffusion-xl/blob/main/DOCS.md" target="_blank" rel="noopener noreferrer">Docs</a>
|
16 |
<a href="https://adamelliotfields-diffusion-xl.hf.space" target="_blank" rel="noopener noreferrer">
|
17 |
-
<svg style="display: inline-block" width="
|
18 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 1.75H9.75C9.88807 1.75 10 1.86193 10 2V4.25C10 4.38807 9.88807 4.5 9.75 4.5C9.61193 4.5 9.5 4.38807 9.5 4.25V2.60355L6.42678 5.67678C6.32915 5.77441 6.17085 5.77441 6.07322 5.67678C5.97559 5.57915 5.97559 5.42085 6.07322 5.32322L9.14645 2.25H7.5C7.36193 2.25 7.25 2.13807 7.25 2C7.25 1.86193 7.36193 1.75 7.5 1.75Z" fill="currentColor"></path>
|
19 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 2.5C6 2.22386 5.77614 2 5.5 2H2.69388C2.50985 2 2.33336 2.07311 2.20323 2.20323C2.0731 2.33336 2 2.50986 2 2.69389V8.93885C2 9.12288 2.0731 9.29933 2.20323 9.42953C2.33336 9.55963 2.50985 9.63273 2.69388 9.63273H8.93884C9.12287 9.63273 9.29941 9.55963 9.42951 9.42953C9.55961 9.29933 9.63271 9.12288 9.63271 8.93885V6.5C9.63271 6.22386 9.40885 6 9.13271 6C8.85657 6 8.63271 6.22386 8.63271 6.5V8.63273H3V3H5.5C5.77614 3 6 2.77614 6 2.5Z" fill="currentColor" fill-opacity="0.3"></path>
|
20 |
</svg>
|
|
|
14 |
<a href="https://huggingface.co/spaces/adamelliotfields/diffusion-flux" target="_blank" rel="noopener noreferrer">FLUX.1</a>
|
15 |
<a href="https://huggingface.co/spaces/adamelliotfields/diffusion-xl/blob/main/DOCS.md" target="_blank" rel="noopener noreferrer">Docs</a>
|
16 |
<a href="https://adamelliotfields-diffusion-xl.hf.space" target="_blank" rel="noopener noreferrer">
|
17 |
+
<svg style="display: inline-block" width="16px" height="16px" viewBox="0 0 12 12" fill="currentColor" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet">
|
18 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 1.75H9.75C9.88807 1.75 10 1.86193 10 2V4.25C10 4.38807 9.88807 4.5 9.75 4.5C9.61193 4.5 9.5 4.38807 9.5 4.25V2.60355L6.42678 5.67678C6.32915 5.77441 6.17085 5.77441 6.07322 5.67678C5.97559 5.57915 5.97559 5.42085 6.07322 5.32322L9.14645 2.25H7.5C7.36193 2.25 7.25 2.13807 7.25 2C7.25 1.86193 7.36193 1.75 7.5 1.75Z" fill="currentColor"></path>
|
19 |
<path fill-rule="evenodd" clip-rule="evenodd" d="M6 2.5C6 2.22386 5.77614 2 5.5 2H2.69388C2.50985 2 2.33336 2.07311 2.20323 2.20323C2.0731 2.33336 2 2.50986 2 2.69389V8.93885C2 9.12288 2.0731 9.29933 2.20323 9.42953C2.33336 9.55963 2.50985 9.63273 2.69388 9.63273H8.93884C9.12287 9.63273 9.29941 9.55963 9.42951 9.42953C9.55961 9.29933 9.63271 9.12288 9.63271 8.93885V6.5C9.63271 6.22386 9.40885 6 9.13271 6C8.85657 6 8.63271 6.22386 8.63271 6.5V8.63273H3V3H5.5C5.77614 3 6 2.77614 6 2.5Z" fill="currentColor" fill-opacity="0.3"></path>
|
20 |
</svg>
|