Skip to content

Commit 91966e9

Browse files
committed
Fix appearance on mobile
1 parent 2ad7324 commit 91966e9

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

scripts/static/index.css

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,25 @@
66
}
77
#search {
88
margin-top: 20vh;
9+
margin-left: auto;
10+
margin-right: auto;
11+
max-width: 800px;
12+
913
text-align: center;
1014
}
1115
fieldset {
1216
border: none;
1317
}
18+
#fieldset-search {
19+
display: flex;
20+
}
1421
#prompt {
15-
width: 500px;
22+
flex-grow: 1;
23+
1624
border-radius: 20px 0px 0px 20px;
1725
padding: 5px 10px 5px 10px;
1826
border: 1px solid black;
27+
border-right: none;
1928
outline: none;
2029
}
2130
#submit {
@@ -25,8 +34,8 @@ fieldset {
2534
}
2635
#results {
2736
text-align: center;
28-
padding-left: 20vw;
29-
padding-right: 20vw;
37+
max-width: 1000px;
38+
margin: auto;
3039
padding-top: 10px;
3140
}
3241
img {
@@ -35,7 +44,7 @@ img {
3544
border-radius: 5px;
3645
margin: 10px;
3746
}
38-
#generate-config {
47+
#fieldset-config {
3948
line-height:2em;
4049
}
4150
input[type="number"] {
@@ -47,3 +56,6 @@ input[type="number"] {
4756
hr {
4857
width: 200px;
4958
}
59+
label {
60+
white-space: nowrap;
61+
}

scripts/static/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<head>
33
<title>Stable Diffusion WebUI</title>
44
<link rel="icon" href="data:,">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
56

67
<link rel="stylesheet" href="scripts/static/index.css">
78
<script src="scripts/static/index.js"></script>
@@ -11,11 +12,11 @@
1112
<h2 id="header">Stable Diffusion</h2>
1213

1314
<form id="generate-form" method="post" action="#">
14-
<fieldset>
15+
<fieldset id="fieldset-search">
1516
<input type="text" id="prompt" name="prompt">
1617
<input type="submit" id="submit" value="Generate">
1718
</fieldset>
18-
<fieldset id="generate-config">
19+
<fieldset id="fieldset-config">
1920
<label for="batch">Batch Size:</label>
2021
<input value="1" type="number" id="batch" name="batch">
2122
<label for="steps">Steps:</label>

0 commit comments

Comments
 (0)