mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
fix styling issues
This commit is contained in:
@@ -63,7 +63,6 @@ const PopoverContainer = styled.div<ContainerProps>`
|
||||
margin-top: -0.4rem;
|
||||
-webkit-transform-origin: center;
|
||||
transform-origin: center;
|
||||
box-shadow: -1px 1px 2px rgba(10, 10, 10, 0.2);
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -89,14 +89,14 @@ const SignatureIcon: FC<Props> = ({signatures, className}) => {
|
||||
const signatureElements = signatures.map(signature => createSignatureBlock(signature));
|
||||
|
||||
const getColor = () => {
|
||||
const verified = signatures.some(sig => sig.status === "VERIFIED");
|
||||
if (verified) {
|
||||
return "success";
|
||||
}
|
||||
const invalid = signatures.some(sig => sig.status === "INVALID");
|
||||
if (invalid) {
|
||||
return "danger";
|
||||
}
|
||||
const verified = signatures.some(sig => sig.status === "VERIFIED");
|
||||
if (verified) {
|
||||
return "success";
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
|
||||
@@ -43,12 +43,6 @@ export const PublicKeyEntry: FC<Props> = ({ publicKey, onDelete }) => {
|
||||
<DeleteButton label={t("publicKey.delete")} action={() => onDelete((publicKey._links.delete as Link).href)} />
|
||||
);
|
||||
}
|
||||
let downloadButton;
|
||||
if (publicKey?._links?.raw) {
|
||||
downloadButton = (
|
||||
<DownloadButton displayName={t("publicKey.download")} url={(publicKey?._links?.raw as Link).href} />
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -57,9 +51,8 @@ export const PublicKeyEntry: FC<Props> = ({ publicKey, onDelete }) => {
|
||||
<td className="is-hidden-mobile">
|
||||
<DateFromNow date={publicKey.created} />
|
||||
</td>
|
||||
<td className="is-hidden-mobile">{publicKey.id}</td>
|
||||
<td className="is-hidden-mobile">{publicKey._links?.raw ? <a href={(publicKey._links.raw as Link).href}>{publicKey.id}</a> : publicKey.id}</td>
|
||||
<td>{deleteButton}</td>
|
||||
<td className="is-hidden-mobile">{downloadButton}</td>
|
||||
</tr>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user