From: Stephen Smith Date: Thu, 29 Jul 2021 14:50:49 +0000 (-0400) Subject: 17526: Use codesnippet component on webdav dialog wget command for monospace X-Git-Tag: 2.3.0~12^2~2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/e07a6c34953c6546de1c3d13a0bacf031981c356 17526: Use codesnippet component on webdav dialog wget command for monospace Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- diff --git a/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx b/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx index 73c89621..7255e756 100644 --- a/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx +++ b/src/views-components/webdav-s3-dialog/webdav-s3-dialog.tsx @@ -10,8 +10,9 @@ import { WithDialogProps } from 'store/dialog/with-dialog'; import { compose } from 'redux'; import { DetailsAttribute } from "components/details-attribute/details-attribute"; import { DownloadIcon } from "components/icon/icon"; +import { DefaultCodeSnippet } from "components/default-code-snippet/default-code-snippet"; -export type CssRules = 'details' | 'downloadButton'; +export type CssRules = 'details' | 'downloadButton' | 'detailsAttrValWithCode'; const styles: StyleRulesCallback = theme => ({ details: { @@ -20,6 +21,10 @@ const styles: StyleRulesCallback = theme => ({ }, downloadButton: { marginTop: theme.spacing.unit * 2, + }, + detailsAttrValWithCode: { + display: "flex", + alignItems: "center", } }); @@ -258,8 +263,11 @@ export const WebDavS3InfoDialog = compose( + copyValue={wgetCommand} + classValue={props.classes.detailsAttrValWithCode}> + +