Dashboards & Visualizations

CSS changes in v9.4.0

coreyCLI
Communicator

I have some html/css like below that sets the width of some single value panels.  In v8.3.1 this worked fine but now in v9.4.0 it does not work and sizes the panels evenly across the row.  IE - two single value panels, each get 50%.  I have tried using the Developer Tools in Chrome but all the elements I try have no affect.

 

 

#panel1 {
   width: 20% !important
}
#panel2 {
   width: 20% !important
}

 

 

Any thoughts?

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
0 Karma

coreyCLI
Communicator

interesting approach and thanks for providing it!  I came up with multiple solutions for the deferent scenarios we have.  We have some 9.4.0 right now we are testing and some 9.3.1 which will be upgraded to 9.3.2 soon.

  • If there was a single value panel in a row by itself I just updated the CSS to change the width of the entire row vs just the width of the panel by giving the row an id instead of giving the single value panel and id. 
#panelid { width: 30% !important;} --this works in 9.3.1 but not in 9.4.1

#rowWithPanel { width: 30% !important;} --this works in 9.4.1 and 9.3.1
  • If there were two single value panels in a row that we needed to adjust the width of I used the below.  I wrote it two ways so that it would work in all our environments that currently have v9.3.1 and 9.4.0.
#panelid1 { 
width: 15% !important; --this works in 9.3.1 but not 9.4.1
flex-basis: 15% !important; --this works in 9.4.1 but not in 9.3.1
} 
#panelid2 { 
width: 25% !important; --this works in 9.3.1 but not 9.4.1
flex-basis: 25% !important; --this works in 9.4.1 but not in 9.3.1
} 

 

johnhuang
Motivator

@coreyCLI, thank you for this. Adding "flex-basis" resolved the issue for me.

0 Karma

johnhuang
Motivator

We're seeing similar issues with 9.3.2408

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

 Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team for an ...

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...