Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change width of input #26

Closed
FSerg opened this issue Mar 5, 2019 · 5 comments
Closed

Can't change width of input #26

FSerg opened this issue Mar 5, 2019 · 5 comments
Labels

Comments

@FSerg
Copy link

FSerg commented Mar 5, 2019

❔ Question

Can't change the width of the input.
The CSS customization is available only for cells :(
I tried to use id property like this:
<SemanticDatepicker type="range" id="x123" />
and CSS
#x132 { width: 500px; }
But it doesn't work.

Are there any ideas?

@arthurdenner
Copy link
Owner

Hi @FSerg 👋

This issue is probably caused by what I related in #19.

Unfortunately, I didn't take any time to check and try to solve it.

Any help would be appreciated. 🙏

@xzessmedia
Copy link
Contributor

hmm i can not confirm this,
i was able to change the width for the input,

`.ui.icon.input input {

padding-right: 2.67142857em !important;
width: 500px;

}`

for the class clndr-control
and even clndr-cell

without any problems, just normal css knowledge

@arthurdenner
Copy link
Owner

Hi @xzessmedia! 👋

Yep, you can control it with CSS, but I think that the perfect behavior would be if just worked™ without any extra work. The problem is more visible if you try to use the component inside a Form.Group.

@stale
Copy link

stale bot commented Apr 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 19, 2020
@stale stale bot closed this as completed Apr 26, 2020
@brad12s
Copy link

brad12s commented Jun 29, 2020

Running into same issues where the last 2 digits are being cutoff.
Using inside a <Form.Group>.
Editing the css renders all UI input fields:

.ui.form .field .ui.icon.input { width: 245px; }

Solution:
I was able to isolate this component by wrapping in a div with a custom class name and adjusting the css:

.ui.form .mine .field .ui.icon.input input { width: 245px; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants