From 2e48112c4ff8dbed52ed636da0409f2886c9d373 Mon Sep 17 00:00:00 2001 From: puni9869 Date: Wed, 13 Sep 2023 00:35:48 +0530 Subject: [PATCH 1/3] Ui correction in mobile view nav bar. --- templates/base/head_navbar.tmpl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 5a2d0ddb0b6cf..3fbcb148e832f 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -28,27 +28,27 @@ {{/* No links */}} {{else if .IsSigned}} {{if not .UnitIssuesGlobalDisabled}} - {{.locale.Tr "issues"}} + {{.locale.Tr "issues"}} {{end}} {{if not .UnitPullsGlobalDisabled}} - {{.locale.Tr "pull_requests"}} + {{.locale.Tr "pull_requests"}} {{end}} {{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}} {{if .ShowMilestonesDashboardPage}} - {{.locale.Tr "milestones"}} + {{.locale.Tr "milestones"}} {{end}} {{end}} - {{.locale.Tr "explore"}} + {{.locale.Tr "explore"}} {{else if .IsLandingPageOrganizations}} {{.locale.Tr "explore"}} {{else}} - {{.locale.Tr "explore"}} + {{.locale.Tr "explore"}} {{end}} {{template "custom/extra_links" .}} {{if not .IsSigned}} - {{.locale.Tr "help"}} + {{.locale.Tr "help"}} {{end}} @@ -119,7 +119,7 @@ @@ -142,7 +142,7 @@ {{else}} {{if .ShowRegistrationButton}} - + {{svg "octicon-person"}} {{.locale.Tr "register"}} {{end}} - + {{svg "octicon-sign-in"}} {{.locale.Tr "sign_in"}} {{end}} diff --git a/web_src/css/modules/navbar.css b/web_src/css/modules/navbar.css index 61dffb3c80e15..8e2138381ee02 100644 --- a/web_src/css/modules/navbar.css +++ b/web_src/css/modules/navbar.css @@ -95,6 +95,11 @@ width: 100%; margin: 0; } + + #navbar .item-left { + justify-content: flex-start; + } + #navbar.navbar-menu-open .navbar-left #navbar-logo { justify-content: flex-start; width: auto; From e9fd110676036f2a71b365956e1fc34d2ec50590 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 16 Sep 2023 11:15:48 +0800 Subject: [PATCH 3/3] remove justify-content: center from navbar item --- templates/base/head_navbar.tmpl | 22 +++++++++++----------- web_src/css/modules/navbar.css | 6 ------ 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 106002130f2dc..5a2d0ddb0b6cf 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -28,27 +28,27 @@ {{/* No links */}} {{else if .IsSigned}} {{if not .UnitIssuesGlobalDisabled}} - {{.locale.Tr "issues"}} + {{.locale.Tr "issues"}} {{end}} {{if not .UnitPullsGlobalDisabled}} - {{.locale.Tr "pull_requests"}} + {{.locale.Tr "pull_requests"}} {{end}} {{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}} {{if .ShowMilestonesDashboardPage}} - {{.locale.Tr "milestones"}} + {{.locale.Tr "milestones"}} {{end}} {{end}} - {{.locale.Tr "explore"}} + {{.locale.Tr "explore"}} {{else if .IsLandingPageOrganizations}} - {{.locale.Tr "explore"}} + {{.locale.Tr "explore"}} {{else}} - {{.locale.Tr "explore"}} + {{.locale.Tr "explore"}} {{end}} {{template "custom/extra_links" .}} {{if not .IsSigned}} - {{.locale.Tr "help"}} + {{.locale.Tr "help"}} {{end}} @@ -119,7 +119,7 @@ {{else}} {{if .ShowRegistrationButton}} - + {{svg "octicon-person"}} {{.locale.Tr "register"}} {{end}} - + {{svg "octicon-sign-in"}} {{.locale.Tr "sign_in"}} {{end}} diff --git a/web_src/css/modules/navbar.css b/web_src/css/modules/navbar.css index 8e2138381ee02..b6fd2ff20ab76 100644 --- a/web_src/css/modules/navbar.css +++ b/web_src/css/modules/navbar.css @@ -31,7 +31,6 @@ padding-top: 3px; padding-bottom: 3px; display: flex; - justify-content: center; } #navbar > .menu > .item { @@ -95,11 +94,6 @@ width: 100%; margin: 0; } - - #navbar .item-left { - justify-content: flex-start; - } - #navbar.navbar-menu-open .navbar-left #navbar-logo { justify-content: flex-start; width: auto;