From 89ceff24fc7f5dc723dbdd139256bb5e8a60b02e Mon Sep 17 00:00:00 2001 From: Jarrod Flesch Date: Thu, 30 Jul 2020 12:39:49 -0400 Subject: [PATCH] adjusts Icon rendering, add min height to edit sticky so save button can always be seen --- src/client/components/graphics/Icon/index.js | 48 +++++++++---------- .../views/collections/Edit/index.scss | 4 ++ 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/src/client/components/graphics/Icon/index.js b/src/client/components/graphics/Icon/index.js index a04d571b0f..b73c19db4b 100644 --- a/src/client/components/graphics/Icon/index.js +++ b/src/client/components/graphics/Icon/index.js @@ -1,29 +1,29 @@ import React from 'react'; -import customComponents from '../../customComponents'; +import RenderCustomComponent from '../../utilities/RenderCustomComponent'; -const PayloadIcon = () => { - return ( - - - - - ); -}; +const PayloadIcon = () => ( + + + + +); -const Icon = () => { - const IconToRender = customComponents?.graphics?.Icon || PayloadIcon; - return ; -}; +const Icon = () => ( + +); export default Icon; diff --git a/src/client/components/views/collections/Edit/index.scss b/src/client/components/views/collections/Edit/index.scss index 81e44d531e..b278598196 100644 --- a/src/client/components/views/collections/Edit/index.scss +++ b/src/client/components/views/collections/Edit/index.scss @@ -45,6 +45,10 @@ min-width: 0; } + &__sidebar-sticky { + min-height: 100%; + } + &__collection-actions, &__document-actions, &__meta,