Skip to content

Commit f1dd606

Browse files
committed
fixed padding
1 parent bc6d55d commit f1dd606

File tree

7 files changed

+23
-15
lines changed

7 files changed

+23
-15
lines changed

force-app/nksHomePage/lwc/nksHomePageCurrent/nksHomePageCurrent.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
.slds-card__footer {
66
border-top: none !important;
77
justify-content: start;
8-
padding: 0 1rem 1rem 1rem;
98
}
109

1110
.header-icon {
1211
background-color: #4bca81;
1312
}
1413

15-
.slds-card__header {
16-
padding-top: 1rem;
14+
.slds-card {
15+
padding: 1.25rem 1rem;
1716
}
1817

19-
.slds-card__body {
20-
padding: 0 1rem;
18+
.slds-card__body,
19+
.slds-card__footer,
20+
.slds-card__header {
21+
padding: 0;
2122
}

force-app/nksHomePage/lwc/nksHomePageCurrent/nksHomePageCurrent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
></lightning-icon>
1212
</div>
1313
<div class="slds-media__body">
14-
<h2 class="slds-text-heading_medium slds-truncate">{cardLabel}</h2>
14+
<h2 class="slds-card__header-title slds-truncate">{cardLabel}</h2>
1515
</div>
1616
<div class="slds-no-flex">
1717
<div lwc:if={hasPermission} class={buttonClass}>

force-app/nksHomePage/lwc/nksHomePageHighlightPanelTop/nksHomePageHighlightPanelTop.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
display: flex;
55
align-items: center;
66
justify-content: center;
7-
padding: 1rem;
7+
padding: 1.25rem 1rem 1rem 1rem;
88
}
99

1010
.icon-container {

force-app/nksHomePage/lwc/nksHomePageList/nksHomePageList.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
overflow: hidden;
33
max-width: 100%;
44
}
5+
6+
.slds-box {
7+
padding: 1.25rem 1rem;
8+
}

force-app/nksHomePage/lwc/nksHomePageList/nksHomePageList.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</div>
1919
</template>
2020
<div class="slds-media__body">
21-
<h2 id="nav1" class="slds-text-heading_medium slds-truncate">{cardLabel}</h2>
21+
<h2 class="slds-card__header-title slds-truncate">{cardLabel}</h2>
2222
</div>
2323
<template lwc:if={enableRefresh}>
2424
<lightning-button-icon
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
.icon {
22
background-color: rgb(211, 54, 54);
3-
}
3+
}
4+
5+
.slds-box {
6+
padding: 1.25rem 1rem;
7+
}

force-app/nksHomePage/lwc/nksHomePageText/nksHomePageText.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,12 @@ <h2 class="slds-text-heading_medium slds-truncate">{cardTitle}</h2>
6767
</div>
6868
</template>
6969
<div class="slds-media__body">
70-
<h2 class="slds-text-heading_medium slds-truncate">{cardTitle}</h2>
70+
<h2 class="slds-card__header-title slds-truncate">{cardTitle}</h2>
7171
</div>
7272
<div class="slds-var-p-right_small">
73-
<p>Sist oppdatert:&nbsp;
74-
<template lwc:if={isLastUpdatedToday}>
75-
i dag
76-
</template>
73+
<p>
74+
Sist oppdatert:&nbsp;
75+
<template lwc:if={isLastUpdatedToday}> i dag </template>
7776
<template lwc:else>
7877
<lightning-formatted-date-time
7978
value={lastModifiedDate}
@@ -86,7 +85,7 @@ <h2 class="slds-text-heading_medium slds-truncate">{cardTitle}</h2>
8685
</template>
8786
</p>
8887
</div>
89-
88+
9089
<template lwc:if={enableRefresh}>
9190
<lightning-button-icon
9291
class="slds-float_right"

0 commit comments

Comments
 (0)