diff options
| author | bobzel <zzzman@gmail.com> | 2021-08-30 16:39:28 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-08-30 16:39:28 -0400 |
| commit | efaa1a3afa994b66e47cc64cbd750b141a180894 (patch) | |
| tree | 68726706f0553bf99841a383247a3df9b8519ad4 /src/client/views/collections/collectionLinearView/CollectionLinearView.tsx | |
| parent | f915c08c71d1384add30db49e4c74461d3cf0dcd (diff) | |
| parent | 7b6a7a648272e0fd5c248c64f69af5033a6d5f79 (diff) | |
Merge branch 'menu_updates_geireann' of https://github.com/brown-dash/Dash-Web into menu_updates_geireann
Diffstat (limited to 'src/client/views/collections/collectionLinearView/CollectionLinearView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionLinearView/CollectionLinearView.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/collections/collectionLinearView/CollectionLinearView.tsx b/src/client/views/collections/collectionLinearView/CollectionLinearView.tsx index 61fc366eb..6b1fd9e1b 100644 --- a/src/client/views/collections/collectionLinearView/CollectionLinearView.tsx +++ b/src/client/views/collections/collectionLinearView/CollectionLinearView.tsx @@ -18,6 +18,7 @@ import "./CollectionLinearView.scss"; import { CollectionSubView } from '.././CollectionSubView'; import { CollectionViewType } from '.././CollectionView'; import { Colors, Shadows } from '../../global/globalEnums'; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; type LinearDocument = makeInterface<[typeof documentSchema,]>; @@ -119,14 +120,13 @@ export class CollectionLinearView extends CollectionSubView(LinearDocument) { const icon: string = StrCast(this.props.Document.icon); // Menu opener toggle const menuOpener = <label htmlFor={`${guid}`} style={{ + boxShadow: floating ? Shadows.STANDARD_SHADOW : undefined, color: BoolCast(this.layoutDoc.linearViewIsExpanded) ? undefined : Colors.BLACK, backgroundColor: backgroundColor === color ? "black" : BoolCast(this.layoutDoc.linearViewIsExpanded) ? undefined : Colors.LIGHT_GRAY }} onPointerDown={e => e.stopPropagation()} > - <div className="collectionLinearView-menuOpener" - style={{ boxShadow: floating ? Shadows.STANDARD_SHADOW : undefined }} - > - {BoolCast(this.layoutDoc.linearViewIsExpanded) ? icon ? icon : "–" : icon ? icon : "+"} + <div className="collectionLinearView-menuOpener"> + {BoolCast(this.layoutDoc.linearViewIsExpanded) ? icon ? icon : <FontAwesomeIcon icon={"plus"}/> : icon ? icon : <FontAwesomeIcon icon={"minus"}/>} </div> </label>; |
