Unable to set the width of the color picker in form
This:
Doesn't seem to be working.
Any idea how to make the color picker shorter without making the outer Section smaller?
Right now it is filling the whole available space which looks ridiculous for a color picker which usually looks like a small circle or a squar and not a dachshund like selectbox.
11 Replies
Anybody?
For starters, width: 100 isnβt valid css. Should be β100pxβ etc.
But it might need to be max-width also. Would need to inspect the html.
It's straight from the docs
Anyway, I have tried
and also this variant:
No change at all.
It's still 1000px wide.
It's valid HTML though π
Have you tried debugging the html to see why it's not working?
To make it proper 100px one have to alter 'fi-input-wrp' element. Which is two levels up in th tree of the input element you can add thos input attribute or id.. So I am stuck. try it yourself and look at the dev tools view of the dom.
So maybe try
extraAttributes()
instead? Maybe that targets the wrap element?will try, thanks
yeah, it targets the wrapper and adds
width="100px"
or max-width="100px"
respectively. However, it doesn't seem to have an effect. The CSS classes overrule it.
So I need to add an id or class or style attribute itself with css to override that either normally or via !important
I am trying ->id('hello') bbut that will add it to the input element and not the wrapper above.
Does Filament has anything to add id, or class, or style attribute to the wrapper of an element?extraAttributes(['id' => ''])
? π
Solution
that's insane π it worked