Skip to content

Commit 7669da6

Browse files
authored
feat: split refresh button with dropdown for hard refresh (argoproj#25445)
Signed-off-by: choejwoo <jaewoo45@gmail.com>
1 parent f68f0ec commit 7669da6

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

ui/src/app/applications/components/application-details/application-details.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,28 @@ $header: 120px;
158158
}
159159
}
160160

161+
.argo-button:has(.application-details__dropdown-anchor-inner):hover .application-details__dropdown-anchor-inner {
162+
background-color: $argo-color-gray-5;
163+
}
164+
165+
&__dropdown-anchor-inner {
166+
cursor: pointer;
167+
border-radius: 0px 24px 24px 0px;
168+
border-left: 1px solid #ccc;
169+
justify-content: center;
170+
position: absolute;
171+
margin-left: 5px;
172+
right: -10px;
173+
top: 0;
174+
bottom: 0;
175+
width: 24px;
176+
transition: background-color 0.2s;
177+
178+
&:hover {
179+
background-color: $argo-color-gray-4 !important;
180+
}
181+
}
182+
161183
.argo-table-list__row {
162184
.columns.small-1.xxxlarge-1 {
163185
width: 60px;

ui/src/app/applications/components/application-details/application-details.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,11 @@ Are you sure you want to disable auto-sync and rollback application '${props.mat
12141214
action: () => !refreshing && services.applications.get(app.metadata.name, app.metadata.namespace, 'hard')
12151215
}
12161216
]}
1217-
anchor={() => <i className='fa fa-caret-down' />}
1217+
anchor={() => (
1218+
<button className='argo-button--base application-details__dropdown-anchor-inner'>
1219+
<i className='fa fa-caret-down' />
1220+
</button>
1221+
)}
12181222
/>
12191223
</React.Fragment>
12201224
),

0 commit comments

Comments
 (0)