mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 21:45:43 +01:00
use fragments instead of div to avoid layout problems
This commit is contained in:
@@ -39,11 +39,11 @@ const textWrapper = (s: string) => {
|
||||
const first = s.startsWith(" ") ? <> </> : "";
|
||||
const last = s.endsWith(" ") ? <> </> : "";
|
||||
return (
|
||||
<div>
|
||||
<>
|
||||
{first}
|
||||
{s}
|
||||
{last}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -52,7 +52,7 @@ const SplitAndReplace: FC<Props> = ({ text, replacements }) => {
|
||||
if (parts.length === 0) {
|
||||
return <>{parts[0]}</>;
|
||||
}
|
||||
return <div className={"media"}>{parts}</div>;
|
||||
return <>{parts}</>;
|
||||
};
|
||||
|
||||
export default SplitAndReplace;
|
||||
|
||||
Reference in New Issue
Block a user