Only show application name if focused

FossilOrigin-Name: dd9cf53f4b67929188af70ef57ebead4467a2e21017afc705360189d9bd7862b
This commit is contained in:
nekobit 2022-07-31 21:10:48 +00:00
parent 7d0de2754f
commit 4f07f2768f
2 changed files with 12 additions and 4 deletions

5
dist/treebird.css vendored
View file

@ -821,6 +821,11 @@ input[type=checkbox].hidden:not(:checked) + .reply-form
padding-left: 9px;
}
.status:not(:target) .status-meta .application-name
{
display: none;
}
.notification-info + .status,
.notification-info-format + .status
{

View file

@ -30,11 +30,14 @@ sub greentextify
sub emojify
{
my ($text, $emojis) = @_;
foreach my $emoji (@{$emojis})
if ($emojis)
{
my $emo = $emoji->{shortcode};
my $url = $emoji->{url};
$text =~ s/:$emo:/<img class="emoji" src="$url" loading="lazy">/gsi;
foreach my $emoji (@{$emojis})
{
my $emo = $emoji->{shortcode};
my $url = $emoji->{url};
$text =~ s/:$emo:/<img class="emoji" src="$url" loading="lazy">/gsi;
}
}
$text;
}