mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
outsourced and refactored is-word-break class
This commit is contained in:
@@ -12,12 +12,7 @@ const styles = {
|
|||||||
iconColumn: {
|
iconColumn: {
|
||||||
width: "16px"
|
width: "16px"
|
||||||
},
|
},
|
||||||
wordBreakColumn: {
|
wordBreakMinWidth: {
|
||||||
WebkitHyphens: "auto",
|
|
||||||
MozHyphens: "auto",
|
|
||||||
MsHyphens: "auto",
|
|
||||||
hyphens: "auto",
|
|
||||||
wordBreak: "break-all",
|
|
||||||
minWidth: "10em"
|
minWidth: "10em"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -80,12 +75,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.wordBreakColumn}>{this.createFileName(file)}</td>
|
<td className={classNames(classes.wordBreakMinWidth, "is-word-break")}>{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 className={classNames(classes.wordBreakColumn, "is-hidden-mobile")}>
|
<td className={classNames(classes.wordBreakMinWidth, "is-word-break", "is-hidden-mobile")}>
|
||||||
{file.description}
|
{file.description}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -27,6 +27,14 @@ $blue: #33B2E8;
|
|||||||
padding: 0 0 0 3.8em !important;
|
padding: 0 0 0 3.8em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.is-word-break {
|
||||||
|
-webkit-hyphens: auto;
|
||||||
|
-moz-hyphens: auto;
|
||||||
|
-ms-hyphens: auto;
|
||||||
|
hyphens: auto;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
min-height: calc(100vh - 260px);
|
min-height: calc(100vh - 260px);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user