1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 19:37:28 +00:00

[long name] fixup for UIs with long library/folder/file names (#5971)

* [long name] fixup for UIs with long library/folder/file names

* fixed code indentation
This commit is contained in:
llj
2024-03-07 15:37:09 +08:00
committed by GitHub
parent 9281a14634
commit 046aa47022
24 changed files with 112 additions and 84 deletions

View File

@@ -95,12 +95,13 @@ class ChangeRepoPasswordDialog extends React.Component {
render() {
const { repoName, toggleDialog } = this.props;
let title = gettext('Change Password of Library {placeholder}');
title = title.replace('{placeholder}', '<span class="op-target text-truncate mx-1">' + Utils.HTMLescape(repoName) + '</span>');
return (
<Modal isOpen={true} style={{height: 'auto'}} toggle={toggleDialog}>
<ModalHeader toggle={toggleDialog}>
<span>
{Utils.generateDialogTitle(gettext('Change Password of Library {placeholder}'), repoName)}
</span>
<span dangerouslySetInnerHTML={{__html: title}} className="d-flex mw-100"></span>
</ModalHeader>
<ModalBody>
<form id="repo-change-passwd-form" action="" method="post">