adjusts Icon rendering, add min height to edit sticky so save button can always be seen

This commit is contained in:
Jarrod Flesch
2020-07-30 12:39:49 -04:00
parent 47b2940358
commit 89ceff24fc
2 changed files with 28 additions and 24 deletions

View File

@@ -1,29 +1,29 @@
import React from 'react';
import customComponents from '../../customComponents';
import RenderCustomComponent from '../../utilities/RenderCustomComponent';
const PayloadIcon = () => {
return (
<svg
width="25"
height="25"
viewBox="0 0 25 25"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11.5293 0L23 6.90096V19.9978L14.3608 25V11.9032L2.88452 5.00777L11.5293 0Z"
fill="#333333"
/>
<path
d="M10.6559 24.2727V14.0518L2 19.0651L10.6559 24.2727Z"
fill="#333333"
/>
</svg>
);
};
const PayloadIcon = () => (
<svg
width="25"
height="25"
viewBox="0 0 25 25"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11.5293 0L23 6.90096V19.9978L14.3608 25V11.9032L2.88452 5.00777L11.5293 0Z"
fill="#333333"
/>
<path
d="M10.6559 24.2727V14.0518L2 19.0651L10.6559 24.2727Z"
fill="#333333"
/>
</svg>
);
const Icon = () => {
const IconToRender = customComponents?.graphics?.Icon || PayloadIcon;
return <IconToRender />;
};
const Icon = () => (
<RenderCustomComponent
path="graphics.Icon"
DefaultComponent={PayloadIcon}
/>
);
export default Icon;

View File

@@ -45,6 +45,10 @@
min-width: 0;
}
&__sidebar-sticky {
min-height: 100%;
}
&__collection-actions,
&__document-actions,
&__meta,