Skip to content

Commit

Permalink
Minor GUI tweaks
Browse files Browse the repository at this point in the history
Signed-off-by: Flynn <flynn@buoyant.io>
  • Loading branch information
kflynn committed Mar 27, 2024
1 parent c6327d6 commit fe7e8e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions assets/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

.cell {
display: inline-block;
border: 1px solid grey;
border: 2px solid grey;
border-radius: 16px;
height: 120px;
width: 120px;
Expand All @@ -80,16 +80,16 @@
}

.cell-pod-info {
height: 120px;
width: 120px;
border-radius: 16px;
display: inline-block;
position: relative;
text-align: center;
}

.cell-pod-id {
position: absolute;
top: 1px;
left: 1px;
width: 118px;
top: 4px;
left: 4px;
width: 120px;
border-radius: 14px 14px 0px 0px;
font-family: sans-serif;
background: white;
Expand Down Expand Up @@ -163,8 +163,8 @@
border-right: 2px solid grey;
padding-left: .5em;
padding-right: .5em;
max-width: 252px !important;
width: 252px !important;
max-width: 258px !important;
width: 258px !important;
}

.inline {
Expand Down Expand Up @@ -478,7 +478,7 @@ <H1>Faces</H1>
// New pod!
let podDiv = document.createElement("div")
podDiv.id = `cell-pod-${shortName}`
podDiv.className = "cell"
podDiv.className = "cell-pod-info"

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

let podInfoDiv = document.createElement("div")
podInfoDiv.id = `cell-pod-info-${shortName}`
podInfoDiv.className = "cell-pod-info"
podInfoDiv.className = "cell"
podDiv.appendChild(podInfoDiv)

let podSmileySpan = document.createElement("span")
Expand Down
2 changes: 1 addition & 1 deletion pkg/faces/guiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (srv *GUIServer) guiGetHandler(w http.ResponseWriter, r *http.Request) {
rtext = strings.ReplaceAll(rtext, "%%{hide_key}", fmt.Sprintf("%v", srv.hideKey))
rtext = strings.ReplaceAll(rtext, "%%{show_pods}", fmt.Sprintf("%v", srv.showPods))
rtext = strings.ReplaceAll(rtext, "%%{user}", user)
rtext = strings.ReplaceAll(rtext, "%%{user_Agent}", userAgent)
rtext = strings.ReplaceAll(rtext, "%%{user_agent}", userAgent)
}
} else if strings.HasPrefix(r.URL.Path, "/face/") {
// /face/ is a special case: we forward it to the face workload. This is
Expand Down

0 comments on commit fe7e8e3

Please sign in to comment.