Skip to content

Commit

Permalink
fix: align flexbox in cache control
Browse files Browse the repository at this point in the history
  • Loading branch information
djpiper28 committed Mar 4, 2024
1 parent fd72488 commit cff2571
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kube_cache/server/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func (s *Server) Index(c *gin.Context) {
kubesHtml += fmt.Sprintf(`<div style="max-width: 100px;">
<h3>%s</h3>
<a href="./kubeImageByIdNew/%s">Regenerate Image</a>
<img src="./kubeImageById/%s" style="max-width: 100px; max-height: 100px;"/>
</div>`, kube.Name, kube.Id, kube.Id)
<img src="./kubeImageById/%s" style="max-width: 100px; max-height: 100px; align-items: center; align-content: center;" loading="lazy" alt="%s"/>
</div>`, kube.Name, kube.Id, kube.Id, kube.Name)
}

body := fmt.Sprintf(`<!DOCTYPE html>
Expand All @@ -30,11 +30,14 @@ func (s *Server) Index(c *gin.Context) {
<h1>Kube Cache</h1>
<h2>Endpoints</h2>
<ul>
<li><a href="./">/.</a></li>
<li><a href="./kubes">/kubes</a></li>
<li><a href="./kubeById/:id">/kubeById/:id</a></li>
<li><a href="./kubeImageById/:id">/kubeImageById/:id</a></li>
<li><a href="./kubeRecipes">/kubeRecipes</a></li>
<li><a href="./kubeRecipeByIds/:id1/:id2">/kubeRecipeByIds/:id1/:id2</a></li>
<li><a href="./cache_metrics">/cache_metrics</a></li>
<li><a href="./metrics">/metrics</a></li>
</ul>
<h2>Kubes</h2>
<div style="display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px;">
Expand Down

0 comments on commit cff2571

Please sign in to comment.