Skip to content

Commit

Permalink
fix: more flexible title input layout
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed Oct 28, 2021
1 parent caf27b1 commit 7632466
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/index.html
Expand Up @@ -39,10 +39,9 @@ <h1><strong>Borksy</strong> Game Hacker</h1>
id="title"></textarea>
</label>
<p>This is the filename that will be downloaded: <em>(only A-z,0-9,-,_ allowed)</em></p>
<label data-post=".html">
<label class="horizontal" data-post=".html">
<input data-save data-borksy-replace-single="FILENAME" data-default-type="string"
data-default="myBORKSYgame" data-clean-regex="^-|\W" name="filename" id="filename"
class="half inline right">
data-default="myBORKSYgame" data-clean-regex="^-|\W" name="filename" id="filename" />
</label>
</details>

Expand Down
13 changes: 12 additions & 1 deletion src/style/style.scss
Expand Up @@ -214,7 +214,6 @@ form {
textarea {
display: block;
box-sizing: border-box;
min-width: 100%;
min-height: 2em;
width: calc(100% + 2em);
max-width: 100%;
Expand All @@ -240,6 +239,18 @@ form {
text-align: right;
}
}

&.horizontal {
display: flex;
gap: 0.5rem;
> * {
flex: auto;
}
&::before,
&::after {
flex: none;
}
}
}
}

Expand Down

0 comments on commit 7632466

Please sign in to comment.