diff --git a/internal/web/actions/default/ui/components.go b/internal/web/actions/default/ui/components.go index 8e7ca944..f99bad57 100644 --- a/internal/web/actions/default/ui/components.go +++ b/internal/web/actions/default/ui/components.go @@ -8,7 +8,6 @@ import ( "github.com/iwind/TeaGo/actions" "github.com/iwind/TeaGo/files" "github.com/iwind/TeaGo/logs" - "strconv" ) type ComponentsAction actions.Action @@ -19,7 +18,7 @@ func (this *ComponentsAction) RunGet(params struct{}) { this.AddHeader("Content-Type", "text/javascript; charset=utf-8") if !Tea.IsTesting() && len(componentsData) > 0 { - this.AddHeader("Content-Length", strconv.Itoa(len(componentsData))) + this.AddHeader("Last-Modified", "Fri, 06 Sep 2019 08:29:50 GMT") this.Write(componentsData) return } @@ -61,6 +60,5 @@ func (this *ComponentsAction) RunGet(params struct{}) { } componentsData = buffer.Bytes() - this.AddHeader("Content-Length", strconv.Itoa(len(componentsData))) this.Write(componentsData) } diff --git a/web/views/@default/@layout.css b/web/views/@default/@layout.css index e6e1826d..f0d47a80 100644 --- a/web/views/@default/@layout.css +++ b/web/views/@default/@layout.css @@ -248,7 +248,7 @@ body.expanded .main { z-index: 1000; overflow-x: auto; border: 0 !important; - background: #276ac6 !important; + background: #14539A !important; } .top-nav img.avatar { width: 1.6em !important; @@ -385,11 +385,11 @@ body.expanded .main { top: 2em; bottom: 0; overflow-y: auto; - background: #276ac6 !important; + background: #14539A !important; z-index: 10; } .main-menu .menu { - background: #276ac6 !important; + background: #14539A !important; border: 0 !important; box-shadow: none !important; } diff --git a/web/views/@default/@layout.less b/web/views/@default/@layout.less index b3d657b9..b20148ab 100644 --- a/web/views/@default/@layout.less +++ b/web/views/@default/@layout.less @@ -209,7 +209,7 @@ body.expanded .main { z-index: 1000; overflow-x: auto; border: 0 !important; - background: #276ac6 !important; + background: #14539A !important; img.avatar { width: 1.6em !important; @@ -387,11 +387,11 @@ body.expanded .main { top: 2em; bottom: 0; overflow-y: auto; - background: #276ac6 !important; + background: #14539A !important; z-index: 10; .menu { - background: #276ac6 !important; + background: #14539A !important; border: 0 !important; box-shadow: none !important; }