mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-08-29 04:06:58 +00:00
lint, fix repo-card styling
This commit is contained in:
@@ -131,7 +131,7 @@ type RepositoryWithStats struct {
|
||||
// RepoCardData contains all data needed to render a repository card
|
||||
type RepoCardData struct {
|
||||
OwnerHandle string
|
||||
OwnerAvatarURL string // Owner's profile avatar URL (fallback when no repo icon)
|
||||
OwnerAvatarURL string // Owner's profile avatar URL (fallback when no repo icon)
|
||||
Repository string
|
||||
Title string
|
||||
Description string
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
- LastUpdated: time.Time (optional) - Last push time
|
||||
- RegistryURL: string - Registry URL for docker commands (e.g., "atcr.io")
|
||||
*/}}
|
||||
<div class="card card-border card-interactive bg-base-100 p-6 flex flex-col justify-between min-h-60 w-full" onclick="window.location='/r/{{ .OwnerHandle }}/{{ .Repository }}'">
|
||||
<div class="card card-interactive bg-base-200 border-2 border-base-300 p-6 flex flex-col justify-between min-h-60 w-full" onclick="window.location='/r/{{ .OwnerHandle }}/{{ .Repository }}'">
|
||||
<div class="flex gap-4 items-start">
|
||||
{{ if .IconURL }}
|
||||
<img src="{{ .IconURL }}" alt="{{ .Repository }}" class="w-12 rounded-lg object-cover shrink-0">
|
||||
|
||||
@@ -1043,4 +1043,3 @@ func TestGetBlobServerError(t *testing.T) {
|
||||
t.Error("Expected error from GetBlob, got nil")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ func (h *XRPCHandler) HandleNotifyManifest(w http.ResponseWriter, r *http.Reques
|
||||
Operation string `json:"operation"` // "push" or "pull", defaults to "push" for backward compatibility
|
||||
Manifest struct {
|
||||
MediaType string `json:"mediaType"`
|
||||
Config struct {
|
||||
Config struct {
|
||||
Digest string `json:"digest"`
|
||||
Size int64 `json:"size"`
|
||||
MediaType string `json:"mediaType"`
|
||||
|
||||
Reference in New Issue
Block a user