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!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...