Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8743f53

Browse files
Merge pull request #129 from barrymun/bug/selector-text-overflow
Bug - Fix selector component text overflow
2 parents d00e21b + 2917f97 commit 8743f53

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

‎src/styles/main.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,15 +331,22 @@ abbr {
331331
border-radius: var(--br-md);
332332
cursor: pointer;
333333

334-
display: grid;
335-
grid-template-columns: 1fr auto;
334+
display: flex;
336335
align-items: center;
336+
justify-content: space-between;
337337
}
338338

339339
.selector__value {
340340
display: flex;
341341
gap: 0.5em;
342342
align-items: center;
343+
width: calc(100% - 30px); /* 30px accounts for the arrow */
344+
}
345+
346+
.selector__value > span {
347+
overflow: hidden;
348+
white-space: nowrap;
349+
text-overflow: ellipsis;
343350
}
344351

345352
.selector__value img {
@@ -379,6 +386,7 @@ abbr {
379386
list-style: none;
380387

381388
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
389+
z-index: 1;
382390
}
383391

384392
.selector__dropdown:focus-within {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /