added is-clipped class, and show description not at mobile view

This commit is contained in:
Maren Süwer
2018-12-19 08:40:04 +01:00
parent 044a60c7c9
commit 30c9b87cd3
3 changed files with 8 additions and 3 deletions

View File

@@ -119,7 +119,9 @@ class FileTree extends React.Component<Props> {
<th className="is-hidden-mobile">
{t("sources.file-tree.lastModified")}
</th>
<th>{t("sources.file-tree.description")}</th>
<th className="is-hidden-mobile">
{t("sources.file-tree.description")}
</th>
</tr>
</thead>
<tbody>

View File

@@ -6,6 +6,7 @@ import FileSize from "./FileSize";
import FileIcon from "./FileIcon";
import { Link } from "react-router-dom";
import type { File } from "@scm-manager/ui-types";
import classNames from "classnames";
const styles = {
iconColumn: {
@@ -84,7 +85,9 @@ class FileTreeLeaf extends React.Component<Props> {
<td className="is-hidden-mobile">
<DateFromNow date={file.lastModified} />
</td>
<td className={classes.wordBreakColumn}>{file.description}</td>
<td className={classNames(classes.wordBreakColumn, "is-hidden-mobile")}>
{file.description}
</td>
</tr>
);
}