mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 16:09:31 +03:00
various-js: set background on skeletons to enable backgrounds
This commit is contained in:
parent
1354bc897a
commit
5c65f0db20
@ -29,7 +29,7 @@ function darkColors(dark) {
|
||||
background = '#333';
|
||||
} else {
|
||||
text = '#000000';
|
||||
background = '#ffffff';
|
||||
background = '#ffffff00';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3,10 +3,12 @@ import React from 'react';
|
||||
|
||||
export default class Tile extends React.Component {
|
||||
render() {
|
||||
const { transparent } = this.props;
|
||||
const bgClasses = transparent ? ' ' : 'bg-white bg-gray0-d ';
|
||||
return (
|
||||
<div className="fl ma2 bg-white bg-gray0-d overflow-hidden"
|
||||
style={{ height: '126px', width: '126px' }}>
|
||||
{this.props.children}
|
||||
<div className={"fl ma2 overflow-hidden" + bgClasses}
|
||||
style={{ height: '126px', width: '126px' }}>
|
||||
{this.props.children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ export class Skeleton extends Component {
|
||||
listening={props.listening}
|
||||
api={props.api}
|
||||
/>
|
||||
<div className={'h-100 w-100 flex-auto relative ' + rightPanelHide} style={{
|
||||
<div className={'h-100 w-100 flex-auto relative bg-white bg-gray0-d' + rightPanelHide} style={{
|
||||
flexGrow: 1
|
||||
}}
|
||||
>
|
||||
|
@ -33,7 +33,7 @@ export class Skeleton extends Component {
|
||||
selectedGroups={props.selectedGroups}
|
||||
api={this.props.api}
|
||||
/>
|
||||
<div className={'h-100 w-100 relative white-d flex-auto ' + rightPanelHide} style={{
|
||||
<div className={'bg-white bg-gray0-d h-100 w-100 relative white-d flex-auto ' + rightPanelHide} style={{
|
||||
flexGrow: 1
|
||||
}}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user