File tree 4 files changed +33
-14
lines changed
examples/real-time-dashboard
4 files changed +33
-14
lines changed Original file line number Diff line number Diff line change
1
+ ## Real-Time Dashboard
2
+
3
+ A real-time demo dashboard with MongoDB and React. You can follow [ this guide] ( https://real-time-dashboard.cube.dev/ ) to
4
+ learn more about building a real-time dashboard with Cube.js
Original file line number Diff line number Diff line change @@ -48,12 +48,14 @@ body {
48
48
color : # 43436B ;
49
49
font-size : 16px ;
50
50
height : 32px ;
51
- line-height : 1.5 ;
51
+ line-height : 1 ;
52
52
padding : 0 15px ;
53
53
border : 0.5px solid rgba (67 , 67 , 107 , 0.4 );
54
54
box-sizing : border-box;
55
55
border-radius : 4px ;
56
56
transition : border-color .25s ease-in-out;
57
+ display : flex;
58
+ align-items : center;
57
59
}
58
60
59
61
.top-menu a i {
@@ -68,10 +70,6 @@ body {
68
70
margin-left : 10px ;
69
71
}
70
72
71
- .top-menu a span {
72
- vertical-align : sub;
73
- }
74
-
75
73
.top-menu a : hover i {
76
74
opacity : 0.6 ;
77
75
}
@@ -84,3 +82,24 @@ body {
84
82
.top-menu a i {
85
83
margin-right : 5px ;
86
84
}
85
+
86
+ @media only screen and (max-width : 600px ) {
87
+ .ant-layout-header {
88
+ height : 100% ;
89
+ }
90
+
91
+ .top-menu {
92
+ display : block;
93
+ }
94
+
95
+ .top-menu a {
96
+ padding : 0 ;
97
+ border : 0 ;
98
+ font-size : 20px ;
99
+ display : inline;
100
+ }
101
+
102
+ .top-menu a span {
103
+ display : none;
104
+ }
105
+ }
Original file line number Diff line number Diff line change @@ -44,16 +44,12 @@ const Header = ({ location }) => {
44
44
</ Button >
45
45
< Divider type = "vertical" />
46
46
< a href = "https://github.com/cube-js/cube.js/tree/master/examples/real-time-dashboard" >
47
- < span >
48
- < Icon type = "github" />
49
- Github
50
- </ span >
47
+ < Icon type = "github" />
48
+ < span > Github</ span >
51
49
</ a >
52
50
< a href = "https://slack.cube.dev" >
53
- < span >
54
- < Icon type = "slack" />
55
- Slack
56
- </ span >
51
+ < Icon type = "slack" />
52
+ < span > Slack</ span >
57
53
</ a >
58
54
</ div >
59
55
</ Layout . Header >
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ const DashboardItems = [
81
81
order : {
82
82
"Events.minutesAgo" : "desc"
83
83
} ,
84
- limit : 10
84
+ limit : 11
85
85
} ,
86
86
chartType : "bar"
87
87
} ,
You can’t perform that action at this time.
0 commit comments