diff options
| author | bobzel <zzzman@gmail.com> | 2021-04-14 23:12:19 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-04-14 23:12:19 -0400 |
| commit | 3ca56576e187e2f3cc87770b0fbdf8aa6cae73f3 (patch) | |
| tree | a5522f85dd1d28bab025334eefbccc37b54436e0 /src/client/views/collections/TabDocView.tsx | |
| parent | c4cc3cc6a43cbb61c4557da1b6809502645b371a (diff) | |
fixed image templates to set/use the appropriate nativewidth/height. fixed carousel views and style provider to better support properties for components of a document view. fixed menus to show text options when captions and other sub text components are focused.
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index f6aecbb14..4417038fa 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -92,7 +92,8 @@ export class TabDocView extends React.Component<TabDocViewProps> { }; tab.element[0].style.borderTopRightRadius = "8px"; tab.element[0].children[1].appendChild(toggle); - tab._disposers.layerDisposer = reaction(() => ({ layer: tab.DashDoc.activeLayer, color: this.tabColor }), + tab._disposers.layerDisposer = reaction(() => + ({ layer: tab.DashDoc.activeLayer, color: this.tabColor }), ({ layer, color }) => toggle.style.background = !layer ? color : "dimgrey", { fireImmediately: true }); } // shifts the focus to this tab when another tab is dragged over it |
