Fixed buttons "Get code" and "Report issue" being in different collumns. Also added "Get code" and "Report issue" to translation file.

This commit is contained in:
2024-05-11 13:23:04 +02:00
parent c9802bb0ea
commit f7ea891978
6 changed files with 13 additions and 13 deletions

2
.gitignore vendored
View File

@@ -32,7 +32,7 @@
/.irb_history
/.lesshst
/.local
.ruby-version
/.ruby-version
/.ssh
/.vim
/.viminfo

View File

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" id="icon" viewBox="0 0 24 24"><title>bug-outline</title><path d="M20,8H17.19C16.74,7.2 16.12,6.5 15.37,6L17,4.41L15.59,3L13.42,5.17C12.96,5.06 12.5,5 12,5C11.5,5 11.05,5.06 10.59,5.17L8.41,3L7,4.41L8.62,6C7.87,6.5 7.26,7.21 6.81,8H4V10H6.09C6.03,10.33 6,10.66 6,11V12H4V14H6V15C6,15.34 6.03,15.67 6.09,16H4V18H6.81C8.47,20.87 12.14,21.84 15,20.18C15.91,19.66 16.67,18.9 17.19,18H20V16H17.91C17.97,15.67 18,15.34 18,15V14H20V12H18V11C18,10.66 17.97,10.33 17.91,10H20V8M16,15A4,4 0 0,1 12,19A4,4 0 0,1 8,15V11A4,4 0 0,1 12,7A4,4 0 0,1 16,11V15M14,10V12H10V10H14M10,14H14V16H10V14Z" /></svg>
<svg xmlns="http://www.w3.org/2000/svg" id="icon" viewBox="0 0 24 24"><path d="M20,8H17.19C16.74,7.2 16.12,6.5 15.37,6L17,4.41L15.59,3L13.42,5.17C12.96,5.06 12.5,5 12,5C11.5,5 11.05,5.06 10.59,5.17L8.41,3L7,4.41L8.62,6C7.87,6.5 7.26,7.21 6.81,8H4V10H6.09C6.03,10.33 6,10.66 6,11V12H4V14H6V15C6,15.34 6.03,15.67 6.09,16H4V18H6.81C8.47,20.87 12.14,21.84 15,20.18C15.91,19.66 16.67,18.9 17.19,18H20V16H17.91C17.97,15.67 18,15.34 18,15V14H20V12H18V11C18,10.66 17.97,10.33 17.91,10H20V8M16,15A4,4 0 0,1 12,19A4,4 0 0,1 8,15V11A4,4 0 0,1 12,7A4,4 0 0,1 16,11V15M14,10V12H10V10H14M10,14H14V16H10V14Z" /></svg>

Before

Width:  |  Height:  |  Size: 628 B

After

Width:  |  Height:  |  Size: 602 B

View File

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" id="icon" viewBox="0 0 24 24"><title>code-braces</title><path d="M8,3A2,2 0 0,0 6,5V9A2,2 0 0,1 4,11H3V13H4A2,2 0 0,1 6,15V19A2,2 0 0,0 8,21H10V19H8V14A2,2 0 0,0 6,12A2,2 0 0,0 8,10V5H10V3M16,3A2,2 0 0,1 18,5V9A2,2 0 0,0 20,11H21V13H20A2,2 0 0,0 18,15V19A2,2 0 0,1 16,21H14V19H16V14A2,2 0 0,1 18,12A2,2 0 0,1 16,10V5H14V3H16Z" /></svg>
<svg xmlns="http://www.w3.org/2000/svg" id="icon" viewBox="0 0 24 24"><path d="M8,3A2,2 0 0,0 6,5V9A2,2 0 0,1 4,11H3V13H4A2,2 0 0,1 6,15V19A2,2 0 0,0 8,21H10V19H8V14A2,2 0 0,0 6,12A2,2 0 0,0 8,10V5H10V3M16,3A2,2 0 0,1 18,5V9A2,2 0 0,0 20,11H21V13H20A2,2 0 0,0 18,15V19A2,2 0 0,1 16,21H14V19H16V14A2,2 0 0,1 18,12A2,2 0 0,1 16,10V5H14V3H16Z" /></svg>

Before

Width:  |  Height:  |  Size: 375 B

After

Width:  |  Height:  |  Size: 349 B

View File

@@ -53,7 +53,7 @@ body {
display: grid;
gap: 0.8em;
grid-template-areas:
"lheader header header"
"header header header"
"nav nav nav"
"leftside main rightside";
grid-template-columns: 1fr auto 1fr;
@@ -175,14 +175,13 @@ input[type=text]:read-only {
display: flex;
gap: 0.8em;
grid-area: header;
justify-content: flex-end;
margin-left: auto;
}
.lheader {
display: block flex;
display: flex;
gap: 0.8em;
grid-area: lheader;
justify-content: flex-start;
grid-area: header;
}
.navigation {

View File

@@ -23,12 +23,12 @@
<%= tag.meta(name: "turbo-cache-control", content: "no-cache") %>
</head>
<body>
<div class="lheader">
<%= image_link_to t(".get_code"), "code-braces", "https://gitea.michalczyk.pro/fixin.me/fixin.me" %>
<%= image_link_to t(".report_issue"), "bug-outline", "https://gitea.michalczyk.pro/fixin.me/fixin.me/issues" %>
<%= image_link_to(t(:get_code), "code-braces", "https://gitea.michalczyk.pro/fixin.me/fixin.me") %>
<%= image_link_to(t(:report_issue), "bug-outline", "https://gitea.michalczyk.pro/fixin.me/fixin.me/issues") %>
</div>
<body>
<header class="header">
<% if user_signed_in? %>
<%= image_link_to_unless_current(current_user.email, "account-wrench-outline",
@@ -41,8 +41,7 @@
<% end %>
<% else %>
<%= image_link_to_unless_current(t(:sign_in), "login", new_user_session_path) {} %>
<%= image_link_to_unless_current(t(:register), "account-plus-outline",
new_user_registration_path) {} %>
<%= image_link_to_unless_current(t(:register), "account-plus-outline", new_user_registration_path) {} %>
<% end %>
</header>

View File

@@ -102,3 +102,5 @@ en:
recover_password: Recover password
resend_confirmation: Resend confirmation
update: Update
get_code: Get code
report_issue: Report issue