diff --git a/app/http/endpoints/api/panel/panelcreate.go b/app/http/endpoints/api/panel/panelcreate.go index 958dc4e..700396f 100644 --- a/app/http/endpoints/api/panel/panelcreate.go +++ b/app/http/endpoints/api/panel/panelcreate.go @@ -506,7 +506,7 @@ func (p *panelBody) verifyNamingScheme() bool { } // Validate placeholders used - validPlaceholders := []string{"id", "username", "nickname"} + validPlaceholders := []string{"id", "username", "nickname", "id_padded"} for _, match := range placeholderPattern.FindAllStringSubmatch(*p.NamingScheme, -1) { if len(match) < 2 { // Infallible return false diff --git a/frontend/src/components/manage/SettingsCard.svelte b/frontend/src/components/manage/SettingsCard.svelte index b3512ef..4000be1 100644 --- a/frontend/src/components/manage/SettingsCard.svelte +++ b/frontend/src/components/manage/SettingsCard.svelte @@ -45,7 +45,7 @@ Tickets
- diff --git a/frontend/src/includes/Sidebar.svelte b/frontend/src/includes/Sidebar.svelte index 749021b..f3a5fa8 100644 --- a/frontend/src/includes/Sidebar.svelte +++ b/frontend/src/includes/Sidebar.svelte @@ -86,7 +86,7 @@ align-items: center; width: 100%; cursor: pointer; - padding: 5px 0 5px 0; + padding: 5px 4%; } .sidebar-element:hover { @@ -107,7 +107,6 @@ align-items: center; color: white !important; font-size: 18px; - margin-left: 4%; text-decoration: none; } @@ -172,11 +171,10 @@ :global(.sidebar-link) { width: unset; - margin-left: 0 !important; } .user-element { display: none; } } - \ No newline at end of file + diff --git a/utils/types/customembed.go b/utils/types/customembed.go index d02062d..93ed3e8 100644 --- a/utils/types/customembed.go +++ b/utils/types/customembed.go @@ -10,7 +10,7 @@ type CustomEmbed struct { Title *string `json:"title" validate:"omitempty,min=1,max=255"` Description *string `json:"description" validate:"omitempty,min=1,max=4096"` Url *string `json:"url" validate:"omitempty,url,max=255"` - Colour Colour `json:"colour" validate:"required,gte=0,lte=16777215"` + Colour Colour `json:"colour" validate:"gte=0,lte=16777215"` Author Author `json:"author" validate:"dive"` ImageUrl *string `json:"image_url" validate:"omitempty,url,max=255"` ThumbnailUrl *string `json:"thumbnail_url" validate:"omitempty,url,max=255"`