Skip to content

Commit

Permalink
Make updating news form elements and linkit autocomplete scale a bit …
Browse files Browse the repository at this point in the history
…better
  • Loading branch information
teroelonen committed May 23, 2024
1 parent 33a2170 commit 878f7ff
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/css/styles.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/scss/06_components/forms/__index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import 'character-counter';
@import 'dropbutton';
@import 'form-items';
@import 'linkit';
@import 'news-update';
5 changes: 5 additions & 0 deletions src/scss/06_components/forms/_linkit.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Without width the input element doesn't scale on smaller screens.
.js input.form-linkit-autocomplete {
max-width: 500px;
width: 100%;
}
7 changes: 7 additions & 0 deletions src/scss/06_components/forms/_news-update.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.field--name-field-news-item-updating-news {
.form-element--type-text,
.form-element.text-full {
max-width: 500px;
width: 100%;
}
}

0 comments on commit 878f7ff

Please sign in to comment.