Skip to content

Commit 5552e88

Browse files
committed
Move logo to the left side
1 parent b5ff96d commit 5552e88

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
.op-logo
2-
width: 230px
2+
width: 130px
33
height: var(--header-height)
4+
margin: 0 0.5rem 0 1rem
45

56
&--link
6-
margin-top: 12px
7+
margin-top: 16px
78
width: 100%
89
display: block
9-
height: 30px
10-
background: no-repeat 20px 0
10+
height: 24px
1111
text-indent: -9999em
12-
background-position: center
12+
background: no-repeat center
1313
background-size: contain
14-
background-repeat: no-repeat
1514

1615
@media screen and (max-width: 850px)
1716
display: none

frontend/src/global_styles/common/header/quick-add-menu.sass

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
$color: var(--button--primary-font-color)
55
flex-shrink: 0
66

7+
&--button
8+
padding-left: 8px
9+
padding-right: 8px
10+
711
&--icon::before
812
display: flex
913
justify-content: center

lib/redmine/menu_manager/top_menu_helper.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,16 @@ def render_top_menu_left
3838
end
3939

4040
def top_menu_left_menu_items
41-
[render_main_top_menu_nodes,
41+
[render_logo,
42+
render_main_top_menu_nodes,
4243
render_quick_add_menu]
4344
end
4445

4546
def render_top_menu_center
47+
nil
48+
end
49+
50+
def render_logo
4651
content_tag :div, class: "op-logo" do
4752
mode_class = User.current.pref.high_contrast_theme? ? "op-logo--link_high_contrast" : ""
4853
link_to(I18n.t("label_home"),

0 commit comments

Comments
 (0)