Skip to content

Commit ccd91ee

Browse files
authored
Merge pull request #958 from githru/refactor-tooltip/956
refactor(view) : Storyline chart tooltip UI 디자인 및 이벤트 변경
2 parents 2c8ddd9 + b635b48 commit ccd91ee

3 files changed

Lines changed: 88 additions & 261 deletions

File tree

packages/view/src/components/FolderActivityFlow/ClusterVisualization.tsx

Lines changed: 0 additions & 232 deletions
This file was deleted.

packages/view/src/components/FolderActivityFlow/FolderActivityFlow.scss

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
margin: 0 auto;
104104
cursor: grab;
105105
background: $color-background;
106+
overflow: visible;
106107

107108
&:active {
108109
cursor: grabbing;
@@ -112,27 +113,57 @@
112113
&__tooltip {
113114
position: absolute;
114115
display: none;
115-
padding: 0.5rem;
116-
background: rgba(0, 0, 0, 0.9);
117-
color: white;
118-
border-radius: 4px;
119-
font-size: 0.75rem;
116+
padding: 0;
117+
background: transparent;
120118
pointer-events: none;
121119
z-index: 1000;
122120

123121
.contributor-activity-tooltip {
122+
background: rgba(60, 64, 72, 0.9);
123+
padding: 10px 14px;
124+
border-radius: 8px;
125+
border: none;
126+
outline: none;
127+
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
128+
color: #fff;
129+
font-size: 13px;
130+
line-height: 1.6;
131+
position: relative;
132+
124133
p {
125134
margin: 0.25rem 0;
126-
135+
127136
&:first-child {
128137
margin-top: 0;
129138
font-weight: 600;
130139
}
131-
140+
132141
&:last-child {
133142
margin-bottom: 0;
134143
}
135144
}
145+
146+
.insertions {
147+
color: #1fc3b5;
148+
display: inline;
149+
}
150+
151+
.deletions {
152+
color: #e84b6b;
153+
display: inline;
154+
}
155+
156+
.icon-wrapper {
157+
display: inline-flex;
158+
align-items: center;
159+
gap: 4px;
160+
161+
svg {
162+
width: 16px;
163+
height: 16px;
164+
fill: currentColor;
165+
}
166+
}
136167
}
137168
}
138169

@@ -160,11 +191,6 @@
160191
.activity-dot {
161192
cursor: pointer;
162193
transition: all 0.2s ease;
163-
164-
&:hover {
165-
stroke-width: 2;
166-
r: 8;
167-
}
168194
}
169195

170196
.flow-line {

0 commit comments

Comments
 (0)