<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Modify Input Width - XML in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300213#M33110</link>
    <description>&lt;P&gt;This does not work for multiselect in 7.2. It can make a multiselect less wide, but it cannot expand on the default width&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2019 19:49:43 GMT</pubDate>
    <dc:creator>nick405060</dc:creator>
    <dc:date>2019-05-07T19:49:43Z</dc:date>
    <item>
      <title>Modify Input Width - XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300209#M33106</link>
      <description>&lt;P&gt;Hi. I understand that questions have already been raised similar to mine. However, they do not seem to work on my dashboard.&lt;BR /&gt;My goal is to modify the width (decrease) to make my 6 inputs (dropdown, time, text) fit into one row.&lt;/P&gt;
&lt;P&gt;I have edited my input code in the source of my dashboard as below, and edited styles.css as well.&lt;/P&gt;
&lt;P&gt;...&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;/styles.css&lt;/P&gt;
&lt;H1&gt;resized_input {&lt;/H1&gt;
&lt;PRE&gt;&lt;CODE&gt;width: 500px;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;But it doesn't seem to be working. Hoping for advice. I appreciate it in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 21:31:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300209#M33106</guid>
      <dc:creator>arielpconsolaci</dc:creator>
      <dc:date>2020-06-06T21:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Input Width - XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300210#M33107</link>
      <description>&lt;P&gt;There are two places you can put your specialized CSS code:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;inline in the dashboard, or&lt;/LI&gt;
&lt;LI&gt;included in a separate CSS file&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Regarding your specific request, different input types require certain considerations for their sub-parts in order to do what you ask. That is to say you have to handle inputs types a little differently.&lt;/P&gt;

&lt;P&gt;Assuming you are just using dropdowns and text inputs, here is the simplest/fastest way to augment the width of dropdowns and text boxes. Note, you should not mess with the timepicker input. It is very hard to make it look correct if you change its settings.&lt;/P&gt;

&lt;P&gt;Add this code block to the bottom of your dashboard's XML just before the closing  &lt;CODE&gt;&amp;lt;/form&amp;gt;&lt;/CODE&gt; or  &lt;CODE&gt;&amp;lt;/dashboard&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row depends="noshow"&amp;gt;
    &amp;lt;html&amp;gt;
      &amp;lt;style&amp;gt;
        .input-dropdown {
          min-width: 120px !important;
          width: 120px !important;
          max-width: 120px !important;
        }
        .splunk-dropdown .select2-container {
          min-width: 120px !important;
          width: 120px !important;
          max-width: 120px !important;
        }
        .input-text {
          min-width: 130px !important;
          width: 130px !important;
          max-width: 130px !important;
        }
        .input-text &amp;gt; input[type="text"] {
          min-width: 120px !important;
          width: 120px !important;
          max-width: 120px !important;
        }        
      &amp;lt;/style&amp;gt;
    &amp;lt;/html&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Apr 2017 11:22:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300210#M33107</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-04-03T11:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Input Width - XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300211#M33108</link>
      <description>&lt;P&gt;Thank you very much for your help. It had worked on my end. The code for text input didn't work though. I've used the below instead.&lt;/P&gt;

&lt;P&gt;.input-text {&lt;BR /&gt;
           width: 150px !important;&lt;BR /&gt;
         }&lt;BR /&gt;
         input {&lt;BR /&gt;
           width: 140px;&lt;BR /&gt;
         } &lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 09:46:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300211#M33108</guid>
      <dc:creator>arielpconsolaci</dc:creator>
      <dc:date>2017-04-04T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Input Width - XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300212#M33109</link>
      <description>&lt;P&gt;Thanks for your Help!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 02:24:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300212#M33109</guid>
      <dc:creator>cucuro1111</dc:creator>
      <dc:date>2019-01-04T02:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Input Width - XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300213#M33110</link>
      <description>&lt;P&gt;This does not work for multiselect in 7.2. It can make a multiselect less wide, but it cannot expand on the default width&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 19:49:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300213#M33110</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2019-05-07T19:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Input Width - XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300214#M33111</link>
      <description>&lt;P&gt;I can't get it to work in 7.2 either. It reduces the size of the of the input field but the dropdown size remains the same.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 18:57:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300214#M33111</guid>
      <dc:creator>richielynch89</dc:creator>
      <dc:date>2020-02-18T18:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Input Width - XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300215#M33112</link>
      <description>&lt;P&gt;The code&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;html&amp;gt;
   &amp;lt;style&amp;gt;
     .input-dropdown {
       min-width: XXXpx !important;
       width: XXXpx !important;
       max-width: XXXpx !important;
     }
     .splunk-dropdown .select2-container {
       min-width: XXXpx !important;
       width: XXXpx !important;
       max-width: XXXpx !important;
     }
   &amp;lt;/style&amp;gt;
 &amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Works fine.&lt;/P&gt;

&lt;P&gt;But, now, how to take a single dropdown input, not all? Example a dropdown with id="single_dropdown"?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="token_to_catch" id="single_dropdown"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 May 2020 11:51:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300215#M33112</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2020-05-18T11:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Input Width - XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300216#M33113</link>
      <description>&lt;P&gt;Solution is here,&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answering/823957/view.html"&gt;https://answers.splunk.com/answering/823957/view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 08:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Modify-Input-Width-XML/m-p/300216#M33113</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2020-05-19T08:27:47Z</dc:date>
    </item>
  </channel>
</rss>

