kopia lustrzana https://github.com/lartsch/FediAct
Using a loading icon instead of resolving text
rodzic
4bc6b568df
commit
115ba5503a
|
@ -86,11 +86,29 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styles for "resolving..." indicator */
|
/* Styles for "resolving..." indicator */
|
||||||
|
|
||||||
.fediactprocessing {
|
.fediactprocessing {
|
||||||
color: white;
|
display: inline-block;
|
||||||
padding-right: 10px;
|
margin: auto 10px;
|
||||||
padding-left: 10px
|
animation: spin 2s infinite linear;
|
||||||
|
width: 1em;
|
||||||
|
height: 1em;
|
||||||
|
border-radius: 1em;
|
||||||
|
border: 2px solid currentColor;
|
||||||
|
border-left-color: transparent;
|
||||||
|
border-top-color: transparent;
|
||||||
|
position: relative;
|
||||||
|
box-sizing: border-box;
|
||||||
|
opacity: .8;
|
||||||
|
}
|
||||||
|
.fediactprocessing::after {
|
||||||
|
content: "";
|
||||||
|
border: inherit;
|
||||||
|
border-radius: inherit;
|
||||||
|
animation: inherit;
|
||||||
|
animation-duration: 1.5s;
|
||||||
|
animation-timing-function: ease;
|
||||||
|
position: absolute;
|
||||||
|
inset: -2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styles for unresolved indicator */
|
/* Styles for unresolved indicator */
|
||||||
|
@ -177,6 +195,11 @@
|
||||||
filter: opacity(0);
|
filter: opacity(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@keyframes spin {
|
||||||
|
to {
|
||||||
|
transform: rotate(1turn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -797,7 +797,7 @@ async function processToots() {
|
||||||
if (!$(favButton).length) {
|
if (!$(favButton).length) {
|
||||||
favButton = $(el).find("a.icon-button:has(i.fa-star), a.detailed-status__link:has(i.fa-star)")
|
favButton = $(el).find("a.icon-button:has(i.fa-star), a.detailed-status__link:has(i.fa-star)")
|
||||||
}
|
}
|
||||||
$("<span class='fediactprocessing'>Resolving...</span>").insertAfter($(favButton))
|
$("<span class='fediactprocessing'></span>").insertAfter($(favButton))
|
||||||
var boostButton = $(el).find("button:has(i.fa-retweet)").first()
|
var boostButton = $(el).find("button:has(i.fa-retweet)").first()
|
||||||
if (!$(boostButton).length) {
|
if (!$(boostButton).length) {
|
||||||
boostButton = $(el).find("a.icon-button:has(i.fa-retweet), a.detailed-status__link:has(i.fa-retweet)")
|
boostButton = $(el).find("a.icon-button:has(i.fa-retweet), a.detailed-status__link:has(i.fa-retweet)")
|
||||||
|
@ -1252,7 +1252,7 @@ async function processProfile() {
|
||||||
// do we have a full handle?
|
// do we have a full handle?
|
||||||
if (fullHandle) {
|
if (fullHandle) {
|
||||||
if (!tmpSettings.processedFollow.includes(fullHandle)) {
|
if (!tmpSettings.processedFollow.includes(fullHandle)) {
|
||||||
$("<span class='fediactprocessing'>Resolving... </span>").insertBefore($(el))
|
$("<span class='fediactprocessing'></span>").insertBefore($(el))
|
||||||
// yes, so resolve it to a user id on our homeinstance
|
// yes, so resolve it to a user id on our homeinstance
|
||||||
var resolvedHandle = await resolveHandleToHome(fullHandle)
|
var resolvedHandle = await resolveHandleToHome(fullHandle)
|
||||||
if (resolvedHandle) {
|
if (resolvedHandle) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Ładowanie…
Reference in New Issue