diff options
| author | winter | 2025-01-28 21:04:21 +0000 |
|---|---|---|
| committer | winter | 2025-01-28 21:04:21 +0000 |
| commit | 1af3a4e00ec63755a90109d8a63a1b6f6d95def6 (patch) | |
| tree | bbc74811f49b8f83bea65d992143ca5b655fe97e | |
| parent | e591374bb4b7d231fadf99d2e278806e53971919 (diff) | |
alt text and open remote profile
| -rw-r--r-- | static/popup-menu.css | 3 | ||||
| -rw-r--r-- | templates/actor_profile.php | 8 | ||||
| -rw-r--r-- | templates/note.php | 3 |
3 files changed, 12 insertions, 2 deletions
diff --git a/static/popup-menu.css b/static/popup-menu.css index e0ec6c9..a57236f 100644 --- a/static/popup-menu.css +++ b/static/popup-menu.css @@ -22,13 +22,14 @@ ul.popupMenu { grid-template-columns: var(--icon-size) auto; gap: var(--spacing-single); align-items: center; + justify-content: start; border: none; background: none; font-family: inherit; font-size: var(--font-normal-size) !important; color: var(--clr-foreground) !important; - width: max-content !important; + width: 100% !important; text-decoration: none; cursor: pointer; } diff --git a/templates/actor_profile.php b/templates/actor_profile.php index 1e37f28..4692a53 100644 --- a/templates/actor_profile.php +++ b/templates/actor_profile.php @@ -27,6 +27,14 @@ $user = UserAccount::findByCurrentSession(); // i don't know why but `global $user` just straight up doesnt work? $user = UserAccount::findByCurrentSession(); ?> + <?php if (!$actor->isLocal && isset($actor->homepage)): ?> + <li> + <a href="<?= $actor->homepage ?>" target="_blank"> + <span class="material-symbols open-in-new"></span> + <span><?= __('user.profile.openRemote') ?></span> + </a> + </li> + <?php endif; ?> <?php if ($user != null && $user->actor != $actor): ?> <li><?php call_template('actor_profile_block_button', ['user' => $user, 'actor' => $actor]) ?></li> <?php endif; ?> diff --git a/templates/note.php b/templates/note.php index c69531b..f0f289c 100644 --- a/templates/note.php +++ b/templates/note.php @@ -82,7 +82,8 @@ if ($user != null) { <?php foreach ($note->attachments as $attachment): ?> <div> <?php if (str_starts_with($attachment->type, 'image/')): ?> - <img src="<?= $attachment->href ?>"> + <img src="<?= $attachment->href ?>" alt="<?= $attachment->description ?? '' ?>" + title="<?= $attachment->description ?? '' ?>"> <?php else: ?> <a class="file" href="<?= $attachment->href ?>" target="_blank"> <span class="material-symbols attach-file"></span> |
