From 9e4f898f54bdc18f99a06313466906d9555306a0 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 31 May 2023 21:38:06 -0300 Subject: [PATCH 1/5] Changing the mouse cursor on Canva's React Flow --- src/frontend/src/index.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index 899fb1c87..84ede36f1 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -15,3 +15,11 @@ code { font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace; } + +/* +The style below sets the cursor property of the element with the class .react-flow__pane to the default cursor. +The cursor: default; property value restores the browser's default cursor style for the targeted element. By applying this style, the element will no longer have a custom cursor appearance such as "grab" or any other custom cursor defined elsewhere in the application. Instead, it will revert to the default cursor style determined by the browser, typically an arrow-shaped cursor. +*/ +.react-flow__pane{ + cursor: default; +} \ No newline at end of file From d9cae6b211a82a849ce03c42ad784b49b4e30641 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 31 May 2023 22:00:03 -0300 Subject: [PATCH 2/5] fixing identation warnings --- src/frontend/src/index.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index 84ede36f1..f4981616c 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -16,10 +16,8 @@ code { monospace; } -/* -The style below sets the cursor property of the element with the class .react-flow__pane to the default cursor. -The cursor: default; property value restores the browser's default cursor style for the targeted element. By applying this style, the element will no longer have a custom cursor appearance such as "grab" or any other custom cursor defined elsewhere in the application. Instead, it will revert to the default cursor style determined by the browser, typically an arrow-shaped cursor. -*/ -.react-flow__pane{ +/*The style below sets the cursor property of the element with the class .react-flow__pane to the default cursor. +The cursor: default; property value restores the browser's default cursor style for the targeted element. By applying this style, the element will no longer have a custom cursor appearance such as "grab" or any other custom cursor defined elsewhere in the application. Instead, it will revert to the default cursor style determined by the browser, typically an arrow-shaped cursor.*/ +.react-flow__pane { cursor: default; -} \ No newline at end of file +} \ No newline at end of file From 344b94f9b5d523e13edf6f4b61c4142af94ff24e Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 31 May 2023 22:06:49 -0300 Subject: [PATCH 3/5] fixing warning identation --- src/frontend/src/index.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index f4981616c..32f378e63 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -16,8 +16,8 @@ code { monospace; } -/*The style below sets the cursor property of the element with the class .react-flow__pane to the default cursor. -The cursor: default; property value restores the browser's default cursor style for the targeted element. By applying this style, the element will no longer have a custom cursor appearance such as "grab" or any other custom cursor defined elsewhere in the application. Instead, it will revert to the default cursor style determined by the browser, typically an arrow-shaped cursor.*/ +/* The style below sets the cursor property of the element with the class .react-flow__pane to the default cursor. +The cursor: default; property value restores the browser's default cursor style for the targeted element. By applying this style, the element will no longer have a custom cursor appearance such as "grab" or any other custom cursor defined elsewhere in the application. Instead, it will revert to the default cursor style determined by the browser, typically an arrow-shaped cursor. */ .react-flow__pane { cursor: default; -} \ No newline at end of file + } From f27d067609da99e7cd0f1db93b8f20601e7f83d8 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 31 May 2023 22:16:16 -0300 Subject: [PATCH 4/5] fixing identation warnings spaces --- src/frontend/src/index.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index 32f378e63..3fa44bc31 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -19,5 +19,5 @@ code { /* The style below sets the cursor property of the element with the class .react-flow__pane to the default cursor. The cursor: default; property value restores the browser's default cursor style for the targeted element. By applying this style, the element will no longer have a custom cursor appearance such as "grab" or any other custom cursor defined elsewhere in the application. Instead, it will revert to the default cursor style determined by the browser, typically an arrow-shaped cursor. */ .react-flow__pane { - cursor: default; - } + cursor: default; +} From 2ee0244834c0ad56d5b15de169f318805886354e Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 31 May 2023 22:20:12 -0300 Subject: [PATCH 5/5] fixing identation warnings spaces - new --- src/frontend/src/index.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index 3fa44bc31..67f44ca1c 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -19,5 +19,5 @@ code { /* The style below sets the cursor property of the element with the class .react-flow__pane to the default cursor. The cursor: default; property value restores the browser's default cursor style for the targeted element. By applying this style, the element will no longer have a custom cursor appearance such as "grab" or any other custom cursor defined elsewhere in the application. Instead, it will revert to the default cursor style determined by the browser, typically an arrow-shaped cursor. */ .react-flow__pane { - cursor: default; + cursor: default; }