Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: renderFooter styling (#5962)

Aakansha Doshi0111ca205073
diff --git a/src/components/LayerUI.scss b/src/components/LayerUI.scss
index c1d3eb89e9..a8567654cf 100644
--- a/src/components/LayerUI.scss
+++ b/src/components/LayerUI.scss
@@ -85,6 +85,10 @@
& > * {
pointer-events: all;
}
+
+ display: flex;
+ width: 100%;
+ justify-content: flex-start;
}
.layer-ui__wrapper__footer-left,
.layer-ui__wrapper__footer-right,
diff --git a/src/excalidraw-app/index.scss b/src/excalidraw-app/index.scss
index 1ea39c1b03..6b7874dfbf 100644
--- a/src/excalidraw-app/index.scss
+++ b/src/excalidraw-app/index.scss
@@ -4,9 +4,8 @@
&.theme--dark {
--color-primary-contrast-offset: #726dff; // to offset Chubb illusion
}
- .layer-ui__wrapper__footer-center {
- display: flex;
- justify-content: space-between;
+ .layer-ui__wrapper .layer-ui__wrapper__footer-center {
+ justify-content: flex-end;
margin-top: auto;
margin-bottom: auto;
margin-inline-start: auto;
diff --git a/src/packages/excalidraw/example/App.scss b/src/packages/excalidraw/example/App.scss
index 6115eef868..f0aad906c3 100644
--- a/src/packages/excalidraw/example/App.scss
+++ b/src/packages/excalidraw/example/App.scss
@@ -66,10 +66,16 @@
button.custom-element {
width: 2rem;
height: 2rem;
- margin: 0.4rem;
- margin-left: -10px;
+ margin: 0 8px;
}
- .layer-ui__wrapper__footer-center {
- display: flex;
+
+ .custom-footer,
+ .custom-element {
+ padding: 0.1rem;
+ }
+
+ &.excalidraw-container .layer-ui__wrapper .layer-ui__wrapper__footer-center {
+ // Remove once we stop importing langauge list from excalidraw app
+ justify-content: flex-start;
}
}
diff --git a/src/packages/excalidraw/example/App.tsx b/src/packages/excalidraw/example/App.tsx
index ee555f37de..2a0ed1b32f 100644
--- a/src/packages/excalidraw/example/App.tsx
+++ b/src/packages/excalidraw/example/App.tsx
@@ -192,7 +192,10 @@ export default function App() {
>
{COMMENT_SVG}
</button>
- <button onClick={() => alert("This is dummy footer")}>
+ <button
+ className="custom-footer"
+ onClick={() => alert("This is dummy footer")}
+ >
{" "}
custom footer{" "}
</button>