mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 13:35:44 +01:00
fix error
This commit is contained in:
@@ -9,16 +9,6 @@ import classNames from "classnames";
|
||||
import RepositoryAvatar from "./RepositoryAvatar";
|
||||
|
||||
const styles = {
|
||||
overlayFullColumn: {
|
||||
position: "absolute",
|
||||
height: "calc(120px - 0.5rem)",
|
||||
width: "calc(100% - 1.5rem)"
|
||||
},
|
||||
overlayHalfColumn: {
|
||||
position: "absolute",
|
||||
height: "calc(120px - 1.5rem)",
|
||||
width: "calc(50% - 3rem)"
|
||||
},
|
||||
inner: {
|
||||
position: "relative",
|
||||
pointerEvents: "none",
|
||||
@@ -86,8 +76,8 @@ class RepositoryEntry extends React.Component<Props> {
|
||||
const repositoryLink = this.createLink(repository);
|
||||
const halfColumn = fullColumnWidth ? "is-full" : "is-half";
|
||||
const overlayLinkClass = fullColumnWidth
|
||||
? classes.overlayFullColumn
|
||||
: classes.overlayHalfColumn;
|
||||
? "overlay-full-column"
|
||||
: "overlay-half-column";
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
|
||||
@@ -100,6 +100,19 @@ $fa-font-path: "webfonts";
|
||||
&:nth-child(odd) {
|
||||
margin-right: 1.5rem;
|
||||
}
|
||||
|
||||
.overlay-half-column {
|
||||
position: absolute;
|
||||
height: calc(120px - 1.5rem);
|
||||
width: calc(50% - 3rem);
|
||||
}
|
||||
}
|
||||
.column.is-full {
|
||||
.overlay-full-column {
|
||||
position: absolute;
|
||||
height: calc(120px - 0.5rem);
|
||||
width: calc(100% - 1.5rem);
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
.column.is-half {
|
||||
@@ -108,6 +121,13 @@ $fa-font-path: "webfonts";
|
||||
&:nth-child(odd) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
|
||||
.overlay-half-column{
|
||||
position: absolute;
|
||||
height: calc(120px - 0.5rem);
|
||||
width: calc(100% - 1.5rem);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user