From 53297be0fe1c0004a94efe221390b1f37a463c84 Mon Sep 17 00:00:00 2001 From: hanzhenfeng Date: Sun, 16 Oct 2022 18:55:04 +0800 Subject: [PATCH 1/2] #493: As a user, I want to share the diagram so that they can collaborate with me 1. when user click the button, browser will open a new window show the github survey page 2. regarding the implements: 2.1 I have to add an empty function for the share button, I don't know how to avoid that 2.2 I might need to change the share button position --- src/components/ContentWrap.jsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/ContentWrap.jsx b/src/components/ContentWrap.jsx index f048b748..33c6b7e3 100644 --- a/src/components/ContentWrap.jsx +++ b/src/components/ContentWrap.jsx @@ -765,6 +765,8 @@ export default class ContentWrap extends Component { this.cm.js.setValue(codeService.addCode(code, param)); } + gotoShareSurvey() {} + render() { return (
+ + + diff --git a/src/style.css b/src/style.css index df7e17a5..acd8bf38 100644 --- a/src/style.css +++ b/src/style.css @@ -382,7 +382,7 @@ body:not(.light-version).overlay-visible .main-container { font-weight: lighter; } -.demo-side .promotion .downloads { +.demo-side .promotion .actions { margin-left: auto; display: flex; align-items: center;