@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
35 lines (32 loc) • 1.33 kB
JavaScript
/**
* CodeAnalizerComment: Updated 1 imports on 2024-09-22 14:49:52
* Update:: import { IAnySourceItem } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;'
*/
/**
* CodeAnalizerComment: Updated 1 imports on 2024-09-21 23:07:24
* Update:: import { IAnySourceItem } to '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent;'
*/
// import { IAnySourceItem, } from '@mikezimm/fps-core-v7/lib/components/molecules/AnyContent/IAnyContent'; // ./AnyContent/IAnyContent';
/**
* Based on RTF Fixer Expand button logic
* Apply height dynamically based on the state of isExpanded
const RichTextHeight: React.CSSProperties = {
height: isExpanded ? 'auto' : `${ 6 + ReplaceOWizard.changes.length }em`,
display: isExpanded ? 'table-cell' : '-webkit-box', // Adjust display property to suit content flow
};
So each 'option' would look like ( where 'auto' eq full height ):
height: 'auto' OR '6em' OR '3em'
*/
export const SourceRowRenderExpandDefaults = [
{
buttonLabel: 'expand',
iconName: 'ChevronDown',
styles: { height: '5em' }, //
},
{
buttonLabel: 'collapse',
iconName: 'ChevronUp',
styles: { height: 'auto' }, //
}
];
//# sourceMappingURL=ISourceRowRender.js.map