Interactive interface for browsing global, full-resolution satellite imagery
Adjust draggable hover icon and expand selection to entire laye-info element
ZachTRiceb4b068a37eb0
diff --git a/web/js/containers/sidebar/layer-row.js b/web/js/containers/sidebar/layer-row.jsindex 11ee8b8f2..3ff2a1506 100644--- a/web/js/containers/sidebar/layer-row.js+++ b/web/js/containers/sidebar/layer-row.js@@ -143,6 +143,8 @@ function LayerRow (props) {disabled: isEmbedModeActive || isAnimating || isChartingActive,});+ const isDragDisabled = isEmbedModeActive || isAnimating || isChartingActive;+const sortableStyle = {transform: CSS.Transform.toString(transform),transition,@@ -618,15 +620,20 @@ function LayerRow (props) {<Zot zot={activeZot || zot} layer={layer.id} isMobile={isMobile} /><div className={isVectorLayer ? 'layer-main wv-vector-layer' : 'layer-main'}>- <div className="layer-info" style={{ minHeight: layer.shouldHide ? '22px' : vectorLayerMinHeight }}>+ <div+ className="layer-info"+ style={{+ minHeight: layer.shouldHide ? '22px' : vectorLayerMinHeight,+ cursor: isDragDisabled ? undefined : (isDragging ? 'grabbing' : 'grab'),+ }}+ ref={setActivatorNodeRef}+ {...attributes}+ {...listeners}+ ><div className="layer-buttons">{showButtons && renderControls()}</div>- <h4 title={names.title}>- <span ref={setActivatorNodeRef} {...attributes} {...listeners}>- {names.title}- </span>- </h4>+ <h4 title={names.title}>{names.title}</h4>{!layer.shouldHide && (<div className="instrument-collection"><p dangerouslySetInnerHTML={{ __html: names.subtitle }} />