mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
implemented word-break for column
This commit is contained in:
@@ -11,12 +11,13 @@ const styles = {
|
|||||||
iconColumn: {
|
iconColumn: {
|
||||||
width: "16px"
|
width: "16px"
|
||||||
},
|
},
|
||||||
wordBreakTable: {
|
wordBreakColumn: {
|
||||||
WebkitHyphens: "auto",
|
WebkitHyphens: "auto",
|
||||||
MozHyphens: "auto",
|
MozHyphens: "auto",
|
||||||
MsHyphens: "auto",
|
MsHyphens: "auto",
|
||||||
hyphens: "auto",
|
hyphens: "auto",
|
||||||
wordBreak: "auto"
|
wordBreak: "break-all",
|
||||||
|
minWidth: "10em"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -78,12 +79,12 @@ class FileTreeLeaf extends React.Component<Props> {
|
|||||||
return (
|
return (
|
||||||
<tr>
|
<tr>
|
||||||
<td className={classes.iconColumn}>{this.createFileIcon(file)}</td>
|
<td className={classes.iconColumn}>{this.createFileIcon(file)}</td>
|
||||||
<td className={classes.wordBreakTable}>{this.createFileName(file)}</td>
|
<td className={classes.wordBreakColumn}>{this.createFileName(file)}</td>
|
||||||
<td className="is-hidden-mobile">{fileSize}</td>
|
<td className="is-hidden-mobile">{fileSize}</td>
|
||||||
<td className="is-hidden-mobile">
|
<td className="is-hidden-mobile">
|
||||||
<DateFromNow date={file.lastModified} />
|
<DateFromNow date={file.lastModified} />
|
||||||
</td>
|
</td>
|
||||||
<td>{file.description}</td>
|
<td className={classes.wordBreakColumn}>{file.description}</td>
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user