react-panels icon indicating copy to clipboard operation
react-panels copied to clipboard

Tab Content padding

Open yapcheahshen opened this issue 9 years ago • 2 comments

Please recommend a good approach to change tab content padding (now is 10px ) without creating new theme.

yapcheahshen avatar May 23 '15 12:05 yapcheahshen

Well, sorry for the delay but I've a demonstration at work in a few days which is killing me =D

It could be done the right way, which I can't see at the moment, or it could be done in a dirty and incredible simple way:

.tab-content {
  padding: 50px !important;
}

Theadd avatar May 27 '15 09:05 Theadd

I use inline styles as .css file is difficult to share among components, did you think of easier customization of theme styling by passing a styles from props.

Sample code

In panel Render_Styles = React.addons.update(theme_styles, {$merge:this.props.styles})

從我的 iPad 傳送

R. Beltran [email protected] 於 2015年5月27日 17:56 寫道:

Well, sorry for the delay but I've a demonstration at work in a few days which is killing me =D

It could be done the right way, which I can't see at the moment, or it could be done in a dirty and incredible simple way:

.tab-content { padding: 50px !important; } — Reply to this email directly or view it on GitHub.

yapcheahshen avatar May 27 '15 11:05 yapcheahshen