[Input] with action overflow parent container #727
-
Bug ReportInput with action overflow the Card component. The box doesn't take the button into account when resizing. Big issue for responsiveness. Steps to reproduce
Expected resultThe card to care about all of its children when resizing. Actual resultThe card continue to resize until the input (actual input field without the button) cannot shrink. Testcasehttps://codesandbox.io/s/4xzj5w0317 VersionUsing :
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
However, speaking about overflow in cards: The next Version of FUI will contain a fix to wrap long texts in cards by #703 |
Beta Was this translation helpful? Give feedback.
-
Here are my updates: |
Beta Was this translation helpful? Give feedback.
-
@auloin This is not a problem with the card component, you are misusing the card component for something it is not intended to be used for. You should be using a segment for your case not a card. |
Beta Was this translation helpful? Give feedback.
-
@hammy2899 I tried with |
Beta Was this translation helpful? Give feedback.
-
@auloin Seems to work for me https://jsfiddle.net/pmzy2d5L/ |
Beta Was this translation helpful? Give feedback.
-
Is the link the right one? If so, my case is more specific than that, you will need an action (a collapsed button at the right of your input field or a right label big enough (in content size)) to be able to see the issue. doc link for input action: https://semantic-ui.com/elements/input.html#action |
Beta Was this translation helpful? Give feedback.
-
OK, I somehow found a fix. Just had to enable fluid on the |
Beta Was this translation helpful? Give feedback.
OK, I somehow found a fix. Just had to enable fluid on the
input
and everything fits!https://codesandbox.io/s/rmm482qk6o