mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: Show active file name when saving to current file (#3733)
* feat: Show active file name when saving to current file * Make requested changes * More changes
This commit is contained in:
parent
fd4460be37
commit
74a2f16501
6 changed files with 66 additions and 15 deletions
|
@ -488,6 +488,9 @@ const LayerUI = ({
|
|||
setAppState={setAppState}
|
||||
showThemeBtn={showThemeBtn}
|
||||
/>
|
||||
{appState.fileHandle && (
|
||||
<>{actionManager.renderAction("saveToActiveFile")}</>
|
||||
)}
|
||||
</Stack.Col>
|
||||
</Island>
|
||||
</Section>
|
||||
|
@ -506,7 +509,8 @@ const LayerUI = ({
|
|||
style={{
|
||||
// we want to make sure this doesn't overflow so substracting 200
|
||||
// which is approximately height of zoom footer and top left menu items with some buffer
|
||||
maxHeight: `${appState.height - 200}px`,
|
||||
// if active file name is displayed, subtracting 248 to account for its height
|
||||
maxHeight: `${appState.height - (appState.fileHandle ? 248 : 200)}px`,
|
||||
}}
|
||||
>
|
||||
<SelectedShapeActions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue