mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-07-08 22:26:17 +08:00
Make SVG size argument optional (#12814)
Now defaults to 16 on both frontend and backend. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
modules/templates
templates
admin
base
explore
home.tmplorg
repo
activity.tmpl
branch
branch_dropdown.tmplcommit_page.tmplcommits.tmplcommits_list_small.tmplcommits_table.tmpldiff
editor
empty.tmplgraph.tmplheader.tmplhome.tmplissue
branch_selector_field.tmpl
labels
list.tmplmilestone_issues.tmplmilestones.tmplnew_form.tmplview_content
view_title.tmplmigrate
projects
pulls
release
settings
collaboration.tmpldeploy_keys.tmplgithooks.tmpllfs.tmpllfs_file_find.tmpllfs_locks.tmplprotected_branch.tmpl
shabox_badge.tmplsub_menu.tmpluser_cards.tmplview_file.tmplview_list.tmplwebhook
wiki
swagger
user
web_src/js
@ -65,7 +65,7 @@ function issuePopup(owner, repo, index, $element) {
|
||||
html: `
|
||||
<div>
|
||||
<p><small>${issue.repository.full_name} on ${createdAt}</small></p>
|
||||
<p><span class="${color}">${svg(octicon, 16)}</span> <strong>${issue.title}</strong> #${index}</p>
|
||||
<p><span class="${color}">${svg(octicon)}</span> <strong>${issue.title}</strong> #${index}</p>
|
||||
<p>${body}</p>
|
||||
${labels}
|
||||
</div>
|
||||
|
@ -23,7 +23,7 @@ export default function initMarkdownAnchors() {
|
||||
const a = document.createElement('a');
|
||||
a.classList.add('anchor');
|
||||
a.setAttribute('href', `#${encodeURIComponent(originalId)}`);
|
||||
a.innerHTML = svg('octicon-link', 16);
|
||||
a.innerHTML = svg('octicon-link');
|
||||
heading.prepend(a);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user