Skip to content

Commit

Permalink
Prevent text blocks from wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Aug 14, 2024
1 parent b16907d commit f9b6768
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions src/pages/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
align-items: center;
flex-wrap: wrap;
border-bottom: var(--hairline-width) solid var(--outline-color);

&.block {
flex-direction: column;
align-items: flex-start;
}
}
#settings-container section > ul > li > div:last-child {
text-align: end;
Expand Down
16 changes: 8 additions & 8 deletions src/pages/settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function Settings({ onClose }) {
</h3>
<section>
<ul>
<li>
<li class="block">
<label>
<input
type="checkbox"
Expand All @@ -329,7 +329,7 @@ function Settings({ onClose }) {
<Trans>Auto refresh timeline posts</Trans>
</label>
</li>
<li>
<li class="block">
<label>
<input
type="checkbox"
Expand All @@ -341,7 +341,7 @@ function Settings({ onClose }) {
<Trans>Boosts carousel</Trans>
</label>
</li>
<li>
<li class="block">
<label>
<input
type="checkbox"
Expand Down Expand Up @@ -497,7 +497,7 @@ function Settings({ onClose }) {
</div>
</li>
{!!GIPHY_API_KEY && authenticated && (
<li>
<li class="block">
<label>
<input
type="checkbox"
Expand Down Expand Up @@ -530,7 +530,7 @@ function Settings({ onClose }) {
</li>
)}
{!!IMG_ALT_API_URL && authenticated && (
<li>
<li class="block">
<label>
<input
type="checkbox"
Expand Down Expand Up @@ -567,7 +567,7 @@ function Settings({ onClose }) {
</li>
)}
{authenticated && supports('@mastodon/grouped-notifications') && (
<li>
<li class="block">
<label>
<input
type="checkbox"
Expand All @@ -590,7 +590,7 @@ function Settings({ onClose }) {
</li>
)}
{authenticated && (
<li>
<li class="block">
<label>
<input
type="checkbox"
Expand Down Expand Up @@ -626,7 +626,7 @@ function Settings({ onClose }) {
</div>
</li>
)}
<li>
<li class="block">
<label>
<input
type="checkbox"
Expand Down

0 comments on commit f9b6768

Please sign in to comment.