Skip to content

Commit

Permalink
Improve responsiveness of metadata views (#91)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored Jan 7, 2025
1 parent 56c0c50 commit 46b9b9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/enterprise/enterprise_html.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ auto html_file_manager(T &html, const sourcemeta::jsontoolkit::JSON &meta)
html << "<div>";

if (meta.defines("github")) {
html << "<small class=\"me-3\">";
html << "<small class=\"me-3 d-block mb-2 mb-md-0 d-md-inline-block\">";
html << "<i class=\"bi bi-github text-secondary me-1\"></i>";
html << "<a href=\"https://github.com/";
html << meta.at("github").to_string();
Expand All @@ -159,7 +159,7 @@ auto html_file_manager(T &html, const sourcemeta::jsontoolkit::JSON &meta)
}

if (meta.defines("website")) {
html << "<small class=\"me-3\">";
html << "<small class=\"me-3 d-block mb-2 mb-md-0 d-md-inline-block\">";
html << "<i class=\"bi bi-link-45deg text-secondary me-1\"></i>";
html << "<a href=\"";
html << meta.at("website").to_string();
Expand All @@ -170,7 +170,7 @@ auto html_file_manager(T &html, const sourcemeta::jsontoolkit::JSON &meta)
}

if (meta.defines("email")) {
html << "<small class=\"me-3\">";
html << "<small class=\"me-3 d-block mb-2 mb-md-0 d-md-inline-block\">";
html << "<i class=\"bi bi-envelope text-secondary me-1\"></i>";
html << "<a href=\"mailto:";
html << meta.at("email").to_string();
Expand Down

0 comments on commit 46b9b9b

Please sign in to comment.