Skip to content

Fix: Add text-wrap class to xoops_uname fallback anchor in cpadmin theme.tpl #22

@coderabbitai

Description

@coderabbitai

Summary

In htdocs/modules/system/themes/cpadmin/theme.tpl, only the $xoops_name branch of the user-panel info block has text-wrap applied to the anchor tag. The fallback branch that renders $xoops_uname (shown when $xoops_name is empty) is missing this class, which can cause the username to overflow the sidebar.

Suggested Fix

-          <a href="<{xoAppUrl url='user.php'}>" class="d-block" rel="external">
+          <a href="<{xoAppUrl url='user.php'}>" class="d-block text-wrap" rel="external">
             <{$xoops_uname}>
           </a>

References

Requested by @GregMage to be tracked as a separate follow-up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions