Skip to content

Commit 6fabc66

Browse files
committed
chore: history sidebar styles update
1 parent cc6db45 commit 6fabc66

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

src/Shared/Components/CICDHistory/Sidebar.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,38 +210,37 @@ const HistorySummaryCard = React.memo(
210210
>
211211
<NavLink
212212
to={getPath}
213-
className="w-100 deployment-history-card-container"
213+
className="w-100 deployment-history-card-container p-8 br-4"
214214
data-testid={dataTestId}
215215
activeClassName="active"
216216
ref={assignTargetCardRef}
217217
>
218218
<div className="w-100 deployment-history-card">
219219
{getTriggerStatusIcon(status)}
220220
<div className="flexbox-col dc__gap-8">
221-
<div className="flex column left dc__ellipsis-right">
222-
<div className="cn-9 fs-14">
221+
<div className="flex column left">
222+
<div className="cn-9 fs-13 lh-20">
223223
{moment(startedOn).format(DATE_TIME_FORMATS.TWELVE_HOURS_FORMAT)}
224224
</div>
225225
<div className="flex left cn-7 fs-12">
226226
{isCDType && (
227227
<>
228-
<div className="dc__capitalize">
228+
<div className="dc__first-letter-capitalize dc__no-shrink">
229229
{['pre', 'post'].includes(stage?.toLowerCase())
230230
? `${stage}-deploy`
231231
: stage}
232232
</div>
233233
<span className="dc__bullet dc__bullet--d2 ml-4 mr-4" />
234-
235234
{artifact && (
236-
<div className="dc__app-commit__hash dc__app-commit__hash--no-bg">
235+
<div className="dc__app-commit__hash dc__app-commit__hash--no-bg dc__no-shrink">
237236
<ICDocker className="commit-hash__icon grayscale" />
238237
{artifact.split(':')[1].slice(-12)}
239238
</div>
240239
)}
241240
<span className="dc__bullet dc__bullet--d2 ml-4 mr-4" />
242241
</>
243242
)}
244-
<div className="cn-7 fs-12">
243+
<div className="cn-7 fs-12 dc__ellipsis-right">
245244
{triggeredBy === 1 ? 'auto trigger' : triggeredByEmail}
246245
</div>
247246
</div>
@@ -377,11 +376,10 @@ const Sidebar = React.memo(
377376
</div>
378377
)}
379378

380-
<div className="flex column top left flex-grow-1 dc__hide-hscroll" style={{ overflowY: 'auto' }}>
379+
<div className="flex column top left flex-grow-1 dc__hide-hscroll p-8" style={{ overflowY: 'auto' }}>
381380
{fetchIdData === FetchIdDataStatus.SUCCESS && (
382381
<ViewAllCardsTile handleViewAllHistory={handleViewAllHistory} />
383382
)}
384-
385383
{Array.from(triggerHistory)
386384
.sort(([a], [b]) => b - a)
387385
.map(([triggerId, triggerDetails], index) => (

src/Shared/Components/CICDHistory/cicdHistory.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@
198198

199199
.deployment-history-card-container {
200200
text-decoration: unset;
201-
padding: 0 16px;
202201

203202
&:hover {
204203
text-decoration: unset;
@@ -212,8 +211,7 @@
212211
.deployment-history-card {
213212
display: grid;
214213
grid-template-columns: 20px 1fr;
215-
padding: 12px 0;
216-
column-gap: 12px;
214+
column-gap: 8px;
217215
}
218216

219217
.app-status__icon {

0 commit comments

Comments
 (0)