Splunk Search

Multivalue input choice box length css

D2SI
Communicator

Hello there!

I am looking for a way to adjust multivalue choice box length to keep them on one line.

I have already adjusted multivalue input box :

alt text

 <html>
   <style>
     #instance_id {
     width: 50%;
     }
   </style>
 </html>

But I do have long string choices that get displayed on two lines (#2), so I am trying to adjust box choices length to have something like this (#3):

alt text

Is there a way using css / simple xml?

Thanks in advance for any hint!

0 Karma
1 Solution

thomasroulet
Path Finder

Hello,

if you are using a splunk version> = 7 and <= 7.1 (I only tested on version 7.0.1, a Splunk Web UI update has been updated to version 7.1)
you could try to add this part of css:

#instance_id .select2-search-choice {
    max-width: none !important;
}

View solution in original post

thomasroulet
Path Finder

Hello,

if you are using a splunk version> = 7 and <= 7.1 (I only tested on version 7.0.1, a Splunk Web UI update has been updated to version 7.1)
you could try to add this part of css:

#instance_id .select2-search-choice {
    max-width: none !important;
}

D2SI
Communicator

Great thanks!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...