Skip to content

Commit 570608e

Browse files
committed
Strat name clickable
1 parent 30f3176 commit 570608e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/column-views/src/unit-details/panel.module.sass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,5 @@
8080
.sep
8181
margin: 0 0.3em
8282

83+
.clickable
84+
cursor: pointer

packages/column-views/src/unit-details/panel.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,12 @@ function UnitDetailsContent({
255255
{
256256
label: "Stratigraphic name",
257257
},
258-
h("span.strat-name-id", unit.strat_name_id),
258+
h("span",
259+
{
260+
className: "strat-name-id" + (onClickItem ? " clickable" : ""),
261+
onClick: (e) => onClickItem(e, {strat_name_id: unit.strat_name_id})
262+
},
263+
unit.strat_name_id),
259264
),
260265
outcropField,
261266
h.if(features.has(UnitDetailsFeature.AdjacentUnits))([

0 commit comments

Comments
 (0)