mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 10:16:16 +01:00
Merged in bug/table_navi_overflow (pull request #132)
Bug/table navi overflow
This commit is contained in:
@@ -114,7 +114,7 @@ class RepositoryRoot extends React.Component<Props> {
|
|||||||
return (
|
return (
|
||||||
<Page title={repository.namespace + "/" + repository.name}>
|
<Page title={repository.namespace + "/" + repository.name}>
|
||||||
<div className="columns">
|
<div className="columns">
|
||||||
<div className="column is-three-quarters">
|
<div className="column is-three-quarters is-clipped">
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route
|
<Route
|
||||||
path={url}
|
path={url}
|
||||||
|
|||||||
@@ -119,7 +119,9 @@ class FileTree extends React.Component<Props> {
|
|||||||
<th className="is-hidden-mobile">
|
<th className="is-hidden-mobile">
|
||||||
{t("sources.file-tree.lastModified")}
|
{t("sources.file-tree.lastModified")}
|
||||||
</th>
|
</th>
|
||||||
<th>{t("sources.file-tree.description")}</th>
|
<th className="is-hidden-mobile">
|
||||||
|
{t("sources.file-tree.description")}
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -6,10 +6,19 @@ import FileSize from "./FileSize";
|
|||||||
import FileIcon from "./FileIcon";
|
import FileIcon from "./FileIcon";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import type { File } from "@scm-manager/ui-types";
|
import type { File } from "@scm-manager/ui-types";
|
||||||
|
import classNames from "classnames";
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
iconColumn: {
|
iconColumn: {
|
||||||
width: "16px"
|
width: "16px"
|
||||||
|
},
|
||||||
|
wordBreakColumn: {
|
||||||
|
WebkitHyphens: "auto",
|
||||||
|
MozHyphens: "auto",
|
||||||
|
MsHyphens: "auto",
|
||||||
|
hyphens: "auto",
|
||||||
|
wordBreak: "break-all",
|
||||||
|
minWidth: "10em"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -71,12 +80,14 @@ 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>{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={classNames(classes.wordBreakColumn, "is-hidden-mobile")}>
|
||||||
|
{file.description}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user