rDrama/files/templates/user_in_table.html

13 lines
687 B
HTML
Raw Normal View History

{%- include 'admin/shadowbanned_tooltip.html' -%}
2022-12-19 20:55:52 +00:00
{% if user %}
<a data-sort-key="{{user.username.lower()}}" style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
user tables: add float plus margins to replace whitespace (#130) Kindly, In most pages where there are tables containing usernames, there is a space between the user icon and the username that gets underlined on hover. It happens in most tables in this app (applies both to rdrama and WPD). That automatic whitepace appears to come from the usual HTML default space between inline elements. The alternative is to change inheritence but appears cumbersome. This PR fixes that. Affected pages (those that render user_in_table.html): ./files/templates/admin/alts.html ./files/templates/admin/loggedin.html ./files/templates/admin/lottery.html ./files/templates/admin/patrons.html ./files/templates/admin/shadowbanned.html ./files/templates/admins.html ./files/templates/banned.html ./files/templates/chuds.html ./files/templates/grassed.html ./files/templates/hats.html ./files/templates/leaderboard.html ./files/templates/marseys.html ./files/templates/poll_votes.html ./files/templates/settings/security.html ./files/templates/special/worldcup22_leaderboard.html ./files/templates/sub/blockers.html ./files/templates/sub/exilees.html ./files/templates/sub/mods.html ./files/templates/userpage/blockers.html ./files/templates/userpage/followers.html ./files/templates/userpage/following.html ./files/templates/userpage/views.html ./files/templates/userpage/voters.html ./files/templates/votes.html Thanks, Granny Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/130 Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net> Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-21 14:21:45 +00:00
<div class="profile-pic-20-wrapper mb-2 mr-1 float-left">
2022-10-29 21:42:30 +00:00
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
2022-12-24 22:21:49 +00:00
{% if user.hat_active(v)[0] -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="{{user.hat_active(v)[0]}}?h=7" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_active(v)[1]}}">
2022-09-05 03:01:06 +00:00
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.user_name}}</span>
</a>
2022-12-19 20:55:52 +00:00
{% endif %}