Skip to content

Commit

Permalink
remove mastodon logo to have enough space
Browse files Browse the repository at this point in the history
  • Loading branch information
lartsch committed Dec 19, 2022
1 parent 3ae11ff commit ddc8ac9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,11 @@ function showModal(settings) {
function addFediElements() {
if (!$(".fediactrunning").length) {
if ($("div.ui__header").is(":visible")) {
$("a.ui__header__logo").remove()
$("div.ui__header__links").prepend("<span class='fediactrunning'>FediAct running</span>")
$("div.ui__header__links").append("<a target='" + settings.fediact_target + "' href='https://" + settings.fediact_homeinstance + "' class='button button-tertiary fediactgohome'><span>Go home</span></a>")
} else if ($("nav.header").length) {
$("nav.header a.brand").remove()
$("nav.header div.nav-right").prepend("<span class='fediactrunning fediv3'>FediAct running</span>")
$("nav.header div.nav-right").append("<a target='" + settings.fediact_target + "' class='webapp-btn nav-link nav-button fediactgohome' href='https://" + settings.fediact_homeinstance + "'>Go home</a>")
} else if ($("div.sign-in-banner").length) {
Expand Down
Loading

0 comments on commit ddc8ac9

Please sign in to comment.