mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-14 09:31:01 +00:00
feat: Add overlay background for AllChains selector (#163)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
.AllChains {
|
.AllChains {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
top: 16px;
|
top: 16px;
|
||||||
bottom: 16px;
|
bottom: 16px;
|
||||||
@@ -13,6 +13,17 @@
|
|||||||
overflow-x: hide;
|
overflow-x: hide;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.AllChains-overlay {
|
||||||
|
position: fixed;
|
||||||
|
display: block;
|
||||||
|
z-index: 19;
|
||||||
|
background: rgba(0,0,0,0.35);
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.AllChains-chain {
|
.AllChains-chain {
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
background: #B5AEAE;
|
background: #B5AEAE;
|
||||||
|
|||||||
@@ -15,12 +15,16 @@ export namespace AllChains {
|
|||||||
|
|
||||||
export class AllChains extends React.Component<AllChains.Props, {}> {
|
export class AllChains extends React.Component<AllChains.Props, {}> {
|
||||||
public render() {
|
public render() {
|
||||||
const { chains } = this.props;
|
const { chains, subscribed } = this.props;
|
||||||
|
const close = subscribed ? `#list/${subscribed}` : '#list';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="AllChains">
|
<React.Fragment>
|
||||||
{chains.map((chain) => this.renderChain(chain))}
|
<a className="AllChains-overlay" href={close} />
|
||||||
</div>
|
<div className="AllChains">
|
||||||
|
{chains.map((chain) => this.renderChain(chain))}
|
||||||
|
</div>
|
||||||
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user