Skip to content

Commit 00e29b6

Browse files
committed
Truncate long select tags using ellipsis
See textpattern/textpattern#1568
1 parent 0551473 commit 00e29b6

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

dist/hive/assets/css/textpattern.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hiveneutral/assets/css/textpattern.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup-multisite.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mockups/secondary/presentation-section_edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ <h2>Edit section</h2>
157157
<div class="txp-form-field-value">
158158
<select name="skin" id="section_skin">
159159
<option value="four-point-eight" dir="auto">Four Point Eight</option>
160-
<option value="bootstrap-blog-theme" dir="auto" selected>Bootstrap Blog Theme</option>
160+
<option value="bootstrap-blog-theme" dir="auto" selected>An example of a really really really long theme name for testing purposes</option>
161161
</select>
162162
</div>
163163
</div>

src/assets/sass/modules/_forms.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ select {
388388
padding-right: 1.30769230769231em; // 17px / 13px
389389
background: $color-background-form url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 4'%3E%3Cpolygon fill='%23333' points='3.5,4 0,0 7,0'/%3E%3C/svg%3E") right center no-repeat;
390390
background-size: 1em 0.30769230769231em;
391+
text-overflow: ellipsis;
391392
text-transform: none;
392393
}
393394

src/assets/sass/modules/_layout-shared.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ span.spinner {
781781

782782
.txp-form-field-label,
783783
.txp-form-field-value {
784-
max-width: 31em; // 408px / 13px
784+
max-width: 30em; // 390px / 13px
785785
}
786786

787787
/**

0 commit comments

Comments
 (0)