Skip to content

Commit fe7e8e3

Browse files
committed
Minor GUI tweaks
Signed-off-by: Flynn <flynn@buoyant.io>
1 parent c6327d6 commit fe7e8e3

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

assets/html/index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
.cell {
6060
display: inline-block;
61-
border: 1px solid grey;
61+
border: 2px solid grey;
6262
border-radius: 16px;
6363
height: 120px;
6464
width: 120px;
@@ -80,16 +80,16 @@
8080
}
8181

8282
.cell-pod-info {
83-
height: 120px;
84-
width: 120px;
85-
border-radius: 16px;
83+
display: inline-block;
84+
position: relative;
85+
text-align: center;
8686
}
8787

8888
.cell-pod-id {
8989
position: absolute;
90-
top: 1px;
91-
left: 1px;
92-
width: 118px;
90+
top: 4px;
91+
left: 4px;
92+
width: 120px;
9393
border-radius: 14px 14px 0px 0px;
9494
font-family: sans-serif;
9595
background: white;
@@ -163,8 +163,8 @@
163163
border-right: 2px solid grey;
164164
padding-left: .5em;
165165
padding-right: .5em;
166-
max-width: 252px !important;
167-
width: 252px !important;
166+
max-width: 258px !important;
167+
width: 258px !important;
168168
}
169169

170170
.inline {
@@ -478,7 +478,7 @@ <H1>Faces</H1>
478478
// New pod!
479479
let podDiv = document.createElement("div")
480480
podDiv.id = `cell-pod-${shortName}`
481-
podDiv.className = "cell"
481+
podDiv.className = "cell-pod-info"
482482

483483
let podIDDiv = document.createElement("div")
484484
podIDDiv.id = `cell-pod-id-${shortName}`
@@ -488,7 +488,7 @@ <H1>Faces</H1>
488488

489489
let podInfoDiv = document.createElement("div")
490490
podInfoDiv.id = `cell-pod-info-${shortName}`
491-
podInfoDiv.className = "cell-pod-info"
491+
podInfoDiv.className = "cell"
492492
podDiv.appendChild(podInfoDiv)
493493

494494
let podSmileySpan = document.createElement("span")

pkg/faces/guiserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (srv *GUIServer) guiGetHandler(w http.ResponseWriter, r *http.Request) {
118118
rtext = strings.ReplaceAll(rtext, "%%{hide_key}", fmt.Sprintf("%v", srv.hideKey))
119119
rtext = strings.ReplaceAll(rtext, "%%{show_pods}", fmt.Sprintf("%v", srv.showPods))
120120
rtext = strings.ReplaceAll(rtext, "%%{user}", user)
121-
rtext = strings.ReplaceAll(rtext, "%%{user_Agent}", userAgent)
121+
rtext = strings.ReplaceAll(rtext, "%%{user_agent}", userAgent)
122122
}
123123
} else if strings.HasPrefix(r.URL.Path, "/face/") {
124124
// /face/ is a special case: we forward it to the face workload. This is

0 commit comments

Comments
 (0)