diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-16 02:35:37 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-16 02:35:37 +0500 |
| commit | b7f98ae1ab924edebb5a06506cc8545956fd8443 (patch) | |
| tree | 225b2024d2b13ba894f98171f092333183c305db /public | |
| parent | 664f82212c191af8e8bcbafeb60c8b78a10b4fbe (diff) | |
feat: emote wall
Diffstat (limited to 'public')
| -rw-r--r-- | public/emotes/index.php | 3 | ||||
| -rw-r--r-- | public/emotesets.php | 11 | ||||
| -rw-r--r-- | public/static/img/icons/table.png | bin | 0 -> 566 bytes | |||
| -rw-r--r-- | public/static/style.css | 11 | ||||
| -rw-r--r-- | public/users.php | 15 |
5 files changed, 31 insertions, 9 deletions
diff --git a/public/emotes/index.php b/public/emotes/index.php index 9501f04..af14120 100644 --- a/public/emotes/index.php +++ b/public/emotes/index.php @@ -181,7 +181,8 @@ if (CLIENT_REQUIRES_JSON) { } echo '</div>'; } else { - echo "Emotes - Page $page/$total_pages"; + echo "<div class='grow'>Emotes - Page $page/$total_pages</div>"; + html_emotelist_mode(); } ?> </div> diff --git a/public/emotesets.php b/public/emotesets.php index d393779..635f4c4 100644 --- a/public/emotesets.php +++ b/public/emotesets.php @@ -134,8 +134,15 @@ if (CLIENT_REQUIRES_JSON) { <section class="content row"> <section class="content"> <section class="box"> - <div class="box navtab"> - <?php echo $title ?> + <div class="box navtab row"> + <div class="grow"> + <?php echo $title ?> + </div> + <?php + if (!empty($emote_set)) { + html_emotelist_mode(); + } + ?> </div> <div class="box content small-gap items"> <?php diff --git a/public/static/img/icons/table.png b/public/static/img/icons/table.png Binary files differnew file mode 100644 index 0000000..abcd936 --- /dev/null +++ b/public/static/img/icons/table.png diff --git a/public/static/style.css b/public/static/style.css index 5127d9c..9aa1ca9 100644 --- a/public/static/style.css +++ b/public/static/style.css @@ -388,11 +388,16 @@ button.big, font-size: 10px; } -.box.emote img { +.box.emote:has(.emote-desc) img { max-width: 64px; max-height: 64px; } +.box.emote:has(.emote-desc.none) img { + max-width: 96px; + max-height: 96px; +} + a.box { text-decoration: none; color: black; @@ -563,6 +568,10 @@ a.box:hover { display: flex; } +.none { + display: none; +} + .w-full { width: 100%; } diff --git a/public/users.php b/public/users.php index 3f27745..6a6273e 100644 --- a/public/users.php +++ b/public/users.php @@ -410,8 +410,11 @@ if ($is_json) { <section class="content" style="display: inline-block;"> <!-- Current emoteset --> <section class="box grow user-tab" id="user-emotes"> - <div class="box navtab"> - <?php echo !empty($active_emote_set) ? $active_emote_set->name : "Emotes" ?> + <div class="box navtab row"> + <div class="grow"> + <?php echo !empty($active_emote_set) ? $active_emote_set->name : "Emotes" ?> + </div> + <?php html_emotelist_mode() ?> </div> <div class="box content items flex"> <?php if (!empty($active_emote_set)) { @@ -549,9 +552,11 @@ if ($is_json) { <!-- Uploaded emotes --> <section class="box grow user-tab" id="user-uploadedemotes"> - <div class="box navtab"> - Uploaded emotes - <?php echo $user_preferences["private_profile"] ? " <img src='/static/img/icons/eye.png' alt='(Private)' title='You are the only one who sees this' />" : "" ?> + <div class="box navtab row"> + <div class="grow"> + Uploaded emotes + <?php echo $user_preferences["private_profile"] ? " <img src='/static/img/icons/eye.png' alt='(Private)' title='You are the only one who sees this' />" : "" ?> + </div> </div> <div class="box content items"> <?php html_display_emotes($uploaded_emotes); ?> |
