fix: closes #13231, add some text-truncate, match width

This commit is contained in:
Barış Soner Uşaklı
2025-03-05 17:19:47 -05:00
parent 48f0f47a2e
commit bb13ea3013
2 changed files with 74 additions and 73 deletions

View File

@@ -94,6 +94,7 @@
"federation.followers-handle": "Handle", "federation.followers-handle": "Handle",
"federation.followers-id": "ID", "federation.followers-id": "ID",
"federation.followers-none": "No followers.", "federation.followers-none": "No followers.",
"federation.followers-autofill": "Autofill",
"alert.created": "Created", "alert.created": "Created",
"alert.create-success": "Category successfully created!", "alert.create-success": "Category successfully created!",

View File

@@ -14,9 +14,8 @@
<a class="btn btn-primary" href="{config.relative_path}/admin/settings/activitypub">[[admin/manage/categories:federation.disabled-cta]]</a> <a class="btn btn-primary" href="{config.relative_path}/admin/settings/activitypub">[[admin/manage/categories:federation.disabled-cta]]</a>
</div> </div>
{{{ else }}} {{{ else }}}
<div class="acp-page-container">
<div class="row settings m-0"> <div class="row settings m-0">
<div class="col-12 col-md-8 px-0 mb-4" tabindex="0"> <div class="col-12 px-0 mb-4" tabindex="0">
<div id="site-settings" class="mb-4"> <div id="site-settings" class="mb-4">
<form role="form"> <form role="form">
<h5 class="fw-bold settings-header">[[admin/manage/categories:federation.syncing-header]]</h5> <h5 class="fw-bold settings-header">[[admin/manage/categories:federation.syncing-header]]</h5>
@@ -77,15 +76,17 @@
{{{ end }}} {{{ end }}}
{{{ each followers }}} {{{ each followers }}}
<tr data-uid="{./uid}"> <tr data-uid="{./uid}">
<td> <td class="w-100 text-truncate" style="max-width: 1px;">
{buildAvatar(followers, "24px", true)} {buildAvatar(followers, "24px", true)}
{./userslug} {./userslug}
</td> </td>
<td> <td class="w-0">
<code>{./uid}</code> <div class="d-flex gap-2 flex-nowrap align-items-center">
<button type="button" class="btn btn-link" data-action="autofill"> <button type="button" class="btn btn-ghost btn-sm border" data-action="autofill" title="[[admin/manage/categories:federation.followers-autofill]]">
<i class="fa fa-exchange-alt"></i> <i class="fa fa-exchange-alt text-primary"></i>
</button> </button>
<code>{./uid}</code>
</div>
</td> </td>
</tr> </tr>
{{{ end }}} {{{ end }}}
@@ -95,6 +96,5 @@
</div> </div>
</div> </div>
</div> </div>
</div>
{{{ end }}} {{{ end }}}
</div> </div>