From e07a6c34953c6546de1c3d13a0bacf031981c356 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Thu, 29 Jul 2021 10:50:49 -0400 Subject: [PATCH] 17526: Use codesnippet component on webdav dialog wget command for monospace Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- .../webdav-s3-dialog/webdav-s3-dialog.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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}> + +