Skip to content

Node.js based forum software built for the modern web

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

Barış Soner Uşaklıbb13ea301375
diff --git a/public/language/en-GB/admin/manage/categories.json b/public/language/en-GB/admin/manage/categories.json
index a5c0253dae..9965edf634 100644
--- a/public/language/en-GB/admin/manage/categories.json
+++ b/public/language/en-GB/admin/manage/categories.json
@@ -94,6 +94,7 @@
"federation.followers-handle": "Handle",
"federation.followers-id": "ID",
"federation.followers-none": "No followers.",
+ "federation.followers-autofill": "Autofill",
"alert.created": "Created",
"alert.create-success": "Category successfully created!",
diff --git a/src/views/admin/manage/category-federation.tpl b/src/views/admin/manage/category-federation.tpl
index 9d8f1d632f..1f2652b68b 100644
--- a/src/views/admin/manage/category-federation.tpl
+++ b/src/views/admin/manage/category-federation.tpl
@@ -14,85 +14,85 @@
<a class="btn btn-primary" href="{config.relative_path}/admin/settings/activitypub">[[admin/manage/categories:federation.disabled-cta]]</a>
</div>
{{{ else }}}
- <div class="acp-page-container">
- <div class="row settings m-0">
- <div class="col-12 col-md-8 px-0 mb-4" tabindex="0">
- <div id="site-settings" class="mb-4">
- <form role="form">
- <h5 class="fw-bold settings-header">[[admin/manage/categories:federation.syncing-header]]</h5>
- <p>[[admin/manage/categories:federation.syncing-intro]]</p>
- <p class="form-text">[[admin/manage/categories:federation.syncing-caveat]]</p>
+ <div class="row settings m-0">
+ <div class="col-12 px-0 mb-4" tabindex="0">
+ <div id="site-settings" class="mb-4">
+ <form role="form">
+ <h5 class="fw-bold settings-header">[[admin/manage/categories:federation.syncing-header]]</h5>
+ <p>[[admin/manage/categories:federation.syncing-intro]]</p>
+ <p class="form-text">[[admin/manage/categories:federation.syncing-caveat]]</p>
- {{{ if !following.length }}}
- <div class="alert alert-info">[[admin/manage/categories:federation.syncing-none]]</div>
- {{{ else }}}
- <table class="table">
- <thead>
- <tr>
- <th>[[admin/manage/categories:federation.syncing-actorUri]]</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- {{{ each following }}}
- <tr>
- <td>
- <pre class="mb-0 mt-1">{./id}</pre>
- {{{ if !./approved }}}
- <span class="form-text text-warning">Pending</span>
- {{{ end }}}
- </td>
- <td>
- <button type="button" data-action="unfollow" data-actor="{./id}" class="btn btn-sm btn-danger">[[admin/manage/categories:federation.syncing-unfollow]]</button>
- </td>
- </tr>
- {{{ end }}}
- </tbody>
- </table>
- {{{ end }}}
+ {{{ if !following.length }}}
+ <div class="alert alert-info">[[admin/manage/categories:federation.syncing-none]]</div>
+ {{{ else }}}
+ <table class="table">
+ <thead>
+ <tr>
+ <th>[[admin/manage/categories:federation.syncing-actorUri]]</th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ {{{ each following }}}
+ <tr>
+ <td>
+ <pre class="mb-0 mt-1">{./id}</pre>
+ {{{ if !./approved }}}
+ <span class="form-text text-warning">Pending</span>
+ {{{ end }}}
+ </td>
+ <td>
+ <button type="button" data-action="unfollow" data-actor="{./id}" class="btn btn-sm btn-danger">[[admin/manage/categories:federation.syncing-unfollow]]</button>
+ </td>
+ </tr>
+ {{{ end }}}
+ </tbody>
+ </table>
+ {{{ end }}}
- <div class="mb-3">
- <label class="form-label" for="syncing-add">[[admin/manage/categories:federation.syncing-add]]</label>
- <div class="input-group">
- <input id="syncing-add" type="url" class="form-control" />
- <button data-action="follow" type="button" class="btn btn-primary">[[admin/manage/categories:federation.syncing-follow]]</button>
- </div>
+ <div class="mb-3">
+ <label class="form-label" for="syncing-add">[[admin/manage/categories:federation.syncing-add]]</label>
+ <div class="input-group">
+ <input id="syncing-add" type="url" class="form-control" />
+ <button data-action="follow" type="button" class="btn btn-primary">[[admin/manage/categories:federation.syncing-follow]]</button>
</div>
+ </div>
- <hr />
+ <hr />
- <div class="mb-3">
- <p>[[admin/manage/categories:federation.followers]]</p>
- <table class="table small">
- <tr>
- <th>[[admin/manage/categories:federation.followers-handle]]</th>
- <th>[[admin/manage/categories:federation.followers-id]]</th>
- </tr>
- {{{ if !followers.length}}}
- <tr>
- <td class="text-center border-0" colspan="2">
- <em>[[admin/manage/categories:federation.followers-none]]</em>
- </td>
- </tr>
- {{{ end }}}
- {{{ each followers }}}
- <tr data-uid="{./uid}">
- <td>
- {buildAvatar(followers, "24px", true)}
- {./userslug}
- </td>
- <td>
- <code>{./uid}</code>
- <button type="button" class="btn btn-link" data-action="autofill">
- <i class="fa fa-exchange-alt"></i>
+ <div class="mb-3">
+ <p>[[admin/manage/categories:federation.followers]]</p>
+ <table class="table small">
+ <tr>
+ <th>[[admin/manage/categories:federation.followers-handle]]</th>
+ <th>[[admin/manage/categories:federation.followers-id]]</th>
+ </tr>
+ {{{ if !followers.length}}}
+ <tr>
+ <td class="text-center border-0" colspan="2">
+ <em>[[admin/manage/categories:federation.followers-none]]</em>
+ </td>
+ </tr>
+ {{{ end }}}
+ {{{ each followers }}}
+ <tr data-uid="{./uid}">
+ <td class="w-100 text-truncate" style="max-width: 1px;">
+ {buildAvatar(followers, "24px", true)}
+ {./userslug}
+ </td>
+ <td class="w-0">
+ <div class="d-flex gap-2 flex-nowrap align-items-center">
+ <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 text-primary"></i>
</button>
- </td>
- </tr>
- {{{ end }}}
- </table>
- </div>
- </form>
- </div>
+ <code>{./uid}</code>
+ </div>
+ </td>
+ </tr>
+ {{{ end }}}
+ </table>
+ </div>
+ </form>
</div>
</div>
</div>