File tree Expand file tree Collapse file tree 4 files changed +28
-19
lines changed
Expand file tree Collapse file tree 4 files changed +28
-19
lines changed Original file line number Diff line number Diff line change 66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
77 < title > SSL Remote Control</ title >
88 </ head >
9- < body style =" height: 100vh; margin: 0 " >
9+ < body >
1010 < div id ="app "> </ div >
1111 < script type ="module " src ="/src/main.ts "> </ script >
1212 </ body >
Original file line number Diff line number Diff line change @@ -40,11 +40,25 @@ api?.RegisterStateConsumer((s) => {
4040 width : 100% ;
4141}
4242
43+ html {
44+ margin : 0 ;
45+ padding : 0 ;
46+ height : 100% ;
47+ width : 100% ;
48+ }
49+
50+ body {
51+ margin : 0 ;
52+ padding : 0 ;
53+ height : 100% ;
54+ width : 100% ;
55+ }
56+
4357#main {
4458 height : 100% ;
4559 width : 100% ;
4660 box-sizing : border-box ;
47- padding : 0.5 vh 0.5 vw ;
61+ padding : 1 vh 1 vw ;
4862 display : flex ;
4963 flex-direction : column ;
5064 flex-wrap : nowrap ;
@@ -169,12 +183,4 @@ api?.RegisterStateConsumer((s) => {
169183 background : #269CE9 ;
170184 color : #93D5FF ;
171185}
172-
173- /* Chromium has a minimum width of 500px, but the Pi display is only 480px, so we need to add a padding here */
174- @media (max-width : 500px ) {
175- #app {
176- padding-right : 40px ;
177- }
178- }
179-
180186 </style >
Original file line number Diff line number Diff line change @@ -34,6 +34,5 @@ api?.RegisterErrorConsumer((s) => {
3434<style scoped>
3535.error-message {
3636 text-align : center ;
37- height : 1em ;
3837}
3938 </style >
Original file line number Diff line number Diff line change @@ -27,26 +27,27 @@ online.value = false
2727 </script >
2828
2929<template >
30- <div >
30+ <div class =" online-state" :class =" {online: online, offline: !online}" />
31+
32+ <div class =" left-bar" >
33+ <div class =" left-bar-element" >
34+ Robots: <strong >{{ numRobots }}</strong > / <strong >{{ maxRobots }}</strong >
35+ </div >
3136 <div class =" left-bar-element" >
3237 Yellow cards due:
3338 <span class =" yellow-card-time" v-for =" yellowCardDue of yellowCardsDue" >{{ Math.round(yellowCardDue) }}s</span >
3439 </div >
35- <div class =" right-bar-element online-state" :class =" {online: online, offline: !online}" />
36- <div class =" right-bar-element" >
37- Robots: <strong >{{ numRobots }}</strong > / <strong >{{ maxRobots }}</strong >
38- </div >
3940 </div >
4041</template >
4142
4243<style scoped>
43- .right-bar-element {
44- float : right ;
45- margin-left : 1em ;
44+ .left-bar {
45+ width : 80% ;
4646}
4747
4848.left-bar-element {
4949 float : left ;
50+ text-align : left ;
5051 margin-right : 1em ;
5152}
5253
@@ -59,6 +60,9 @@ online.value = false
5960 width : 1em ;
6061 height : 1em ;
6162 border-radius : 1em ;
63+ position : absolute ;
64+ right : 0.5em ;
65+ top : 0.5em ;
6266}
6367
6468.online-state.online {
You can’t perform that action at this time.
0 commit comments