Forcing search box to stay open on Skuid Mobile

  • 1
  • Idea
  • Updated 4 years ago
  • Under Consideration
I'm trying to default the input text box to be open on the search box for a Skuid Mobile Deck. I can get in and edit anything else in the CSS fine through resources, but I can't figure out how to default that text box to display.

Can anyone help or point me in right direction?

Thanks!
Photo of Nosayaba Osai

Nosayaba Osai

  • 156 Points 100 badge 2x thumb

Posted 4 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
This is going to be hard to do, impossible with just CSS unfortunately. We need to add a feature to the Deck component which has it stay open, that's the best way for this to be done. I'll change this to an Idea.
Photo of Nosayaba Osai

Nosayaba Osai

  • 156 Points 100 badge 2x thumb
Actually, I talked to a programmer at my office and he helped me achieve my goal.


In an in-line CSS resource, the following code forces the box to stay open:


div.sm-deck-searchwrapper {

display: block !important;

}


And removing the buttons can be achieved by:


div.sm-deck-actionswrapper { display: none !important; }

div.fa.fa-fw.fa-reply.sm-deck-titlebutton { display: none !important; }


I was also able to change the position of the search box and get it to span the length of the page for prominence. Nothing on my page seems to be negatively affected and the deck still works as intended. It'll still be a good built in feature to have.
(Edited)
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Nice work, glad you could get it to work in the interrim! I like being proved wrong :)