Skip to content

Commit 47e383a

Browse files
committed
Clear canvas button re-styled to match zoom buttons and functionality migrated from navbarbuttons to convascontainer. Blue background color removed from publish in navbarbuttons.
1 parent 1c1a995 commit 47e383a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/src/components/main/CanvasContainer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ import { DeveloperMode, ZoomIn, ZoomOut } from '@mui/icons-material';
99
import Canvas from './Canvas';
1010
import { RootState } from '../../redux/store';
1111
import CodePreview from '../bottom/CodePreview';
12-
import { toggleCodePreview } from '../../redux/reducers/slice/appStateSlice';
12+
import { toggleCodePreview, resetAllState } from '../../redux/reducers/slice/appStateSlice';
1313
import createModal from '../right/createModal';
14-
import { resetAllState } from '../../redux/reducers/slice/appStateSlice';
1514
import { emitEvent } from '../../helperFunctions/socket';
1615

1716
interface CanvasContainerProps {
@@ -169,8 +168,8 @@ function CanvasContainer(props: CanvasContainerProps): JSX.Element {
169168
<Button style={{ ...buttonStyle, ...lastButtonStyle }} onClick={() => clearWorkspace()}>
170169
<svg
171170
xmlns="http://www.w3.org/2000/svg"
172-
width="16"
173-
height="16"
171+
width="24"
172+
height="24"
174173
fill="currentColor"
175174
className="bi bi-trash3"
176175
viewBox="0 0 16 16"
@@ -191,6 +190,7 @@ function CanvasContainer(props: CanvasContainerProps): JSX.Element {
191190
) : (
192191
<Canvas zoom={zoom} ref={containerRef} />
193192
)}
193+
{modal}
194194
</div>
195195
);
196196
}

app/src/components/top/NavBarButtons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ const navbarDropDown = (props): JSX.Element => {
251251
</Link>
252252
<button
253253
onClick={handlePublish}
254-
style={{ backgroundColor: '#0671E3', color: 'white' }}
254+
style={{ textDecoration: 'none' }}
255255
>
256256
<svg
257257
xmlns="http://www.w3.org/2000/svg"

0 commit comments

Comments
 (0)