From aeff86b6dc31bec07c72bcf0aa7504e2413f3144 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sun, 19 Apr 2020 08:42:27 +0200 Subject: [PATCH] =?UTF-8?q?Mejora=20la=20visualizaci=C3=B3n=20de=20los=20m?= =?UTF-8?q?ensajes=20de=20Git?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Se añaden estilos para visualizar mejor los mensajes de confirmación en los repositorios de los proyectos, en las revisiones y también en las mismas revisiones adjuntas a las peticiones. --- README.md | 6 ++- app/views/issues/_changesets.html.erb | 4 +- app/views/repositories/_changeset.html.erb | 4 +- .../circlepro/stylesheets/application.css | 48 ++++++++++++++----- 4 files changed, 44 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index ca5ffd3..a05439f 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ redmine_wiki_lists ## Otros archivos del *core* modificados ``` -suitepro +suitepro | +-- /app/controllers/wiki_controller.rb | | @@ -151,7 +151,11 @@ suitepro | | | +-- /views/account/login.html.erb | | + | +-- /issues/_changesets.html.erb + | | | +-- /layouts/base.html.erb + | | + | +-- /repositories/_changeset.html.erb | +-- /config/locales/en.yml | | diff --git a/app/views/issues/_changesets.html.erb b/app/views/issues/_changesets.html.erb index 3bd775c..a407a90 100644 --- a/app/views/issues/_changesets.html.erb +++ b/app/views/issues/_changesets.html.erb @@ -13,8 +13,6 @@ <% end %>
<%= authoring(changeset.committed_on, changeset.author) %>

-
- <%= format_changeset_comments changeset %> -
+
<%= format_changeset_comments changeset %>
<% end %> diff --git a/app/views/repositories/_changeset.html.erb b/app/views/repositories/_changeset.html.erb index 26ca155..48ea105 100644 --- a/app/views/repositories/_changeset.html.erb +++ b/app/views/repositories/_changeset.html.erb @@ -33,9 +33,7 @@ -
- <%= format_changeset_comments @changeset %> -
+
<%= format_changeset_comments @changeset %>
<% if @changeset.issues.visible.any? || User.current.allowed_to?(:manage_related_issues, @repository.project) %> <%= render :partial => 'related_issues' %> diff --git a/public/themes/circlepro/stylesheets/application.css b/public/themes/circlepro/stylesheets/application.css index 72b172e..b17a45a 100644 --- a/public/themes/circlepro/stylesheets/application.css +++ b/public/themes/circlepro/stylesheets/application.css @@ -27,10 +27,11 @@ * 21. TABS * 22. TABLES * 23. OBJECTS - * 24. GLOSSARY - * 25. RESPONSIVE - * 26. SELECT2 - * 27. PRINTING + * 24. REPOSITORIES + * 25. GLOSSARY + * 26. RESPONSIVE + * 27. SELECT2 + * 28. PRINTING * * Based on Circle Theme by Kirill Bezrukov. */ @@ -1364,9 +1365,9 @@ only screen and (min-device-pixel-ratio: 2) { } @-moz-document url-prefix() { - select { - padding: 4px 0px 4px 5px; - } + select { + padding: 0 18px 0 5px; + } } select::-ms-expand { @@ -1535,7 +1536,32 @@ table.progress td { padding: 0px; } div.details { padding: 20px !important; } /**********************************************************/ -/* 24. GLOSSARY */ +/* 24. REPOSITORIES */ +/**********************************************************/ + +div.changeset-comments, +tr.changeset > td.comments { + font-family: monospace, Courier, Consolas, Menlo, "Liberation Mono"; + unicode-bidi: embed; + white-space: pre; + font-size: 14px; + line-height: 1.2em; + overflow-y: auto; +} +tr.changeset > td.comments { + padding-top: .7em; +} +body.controller-repositories.action-revision div.changeset-comments { + padding: 0 20px 20px; + margin-top: -30px; +} +body.controller-issues.action-show div.changeset-comments { + font-size: 12px; + padding-bottom: 10px; +} + +/**********************************************************/ +/* 25. GLOSSARY */ /**********************************************************/ #glossary_search_params { @@ -1584,7 +1610,7 @@ form[class$="glossary_style"] #grouping label { } /**********************************************************/ -/* 25. RESPONSIVE */ +/* 26. RESPONSIVE */ /**********************************************************/ @media screen and (max-width: 1239px) { @@ -1760,7 +1786,7 @@ form[class$="glossary_style"] #grouping label { } /**********************************************************/ -/* 26. SELECT2 */ +/* 27. SELECT2 */ /**********************************************************/ .theme-Circlepro .select2-container--default .select2-selection--single { @@ -1803,7 +1829,7 @@ form[class$="glossary_style"] #grouping label { } /**********************************************************/ -/* 27. PRINTING */ +/* 28. PRINTING */ /**********************************************************/ @media print {