Limit the width of the document selectors to the width of the parent.#4968
Limit the width of the document selectors to the width of the parent.#4968rjsparks merged 2 commits intoietf-tools:mainfrom
Conversation
It's unfortunately not responsive (select2 limitation), but better than being too long.
Codecov Report
@@ Coverage Diff @@
## main #4968 +/- ##
==========================================
- Coverage 88.48% 88.47% -0.02%
==========================================
Files 296 296
Lines 39818 39818
==========================================
- Hits 35234 35229 -5
- Misses 4584 4589 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
What do you mean by "it's not responsive"? (I understand the words, but not sure what you're getting at.) If I understand what it's doing, it should be computing the style seen by the |
|
I mean that if you resize the window, it doesn't grow or shrink. |
|
Interesting. I toyed with it on Firefox here and it seemed to behave reasonably when the window was narrow. If I put a %-based style on the In any case, it looks fine to me. |
|
What I mean that it looks fine with the change, but when you then narrow or widen the window, the select doesn't grow or shrink. |
|
I see what you mean now. Not sure why I didn't notice before - I must have mixed up what I was looking at. If I put an explicit |
|
@jennifer-richards I can't |
|
Maybe I'm misunderstanding the intention and wandering into the woods. For me, the width tracks the |
|
Yes, the button is in the top right of the sidebar and the sidebar gets stretched too wide by the select. |
|
Ah, I see. I haven't found anything that behaves better than your patch. It'd be nice if it could at least show the end of the selected value - that has more useful info than the start. |
|
That looks much better. On a lark, I tried throwing in a window resize handler that destroys and re-initializes the select2 fields. It worked great when increasing the width of the window but still happily stretched off the viewport when decreasing it. It really doesn't want to do the right thing... |




It's unfortunately not responsive (select2 limitation), but better than being too long.