Skip to content

Commit cb94ee2

Browse files
committed
Fix a few padding classes
1 parent bd3b41c commit cb94ee2

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

Diff for: planning/index.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function TotalByWeek({ by_week, title }) {
191191
row={row}
192192
column={1}
193193
colspan={`span ${FIRST_DATA_COLUMN - 1}`}
194-
className="planning--scale text-end pr-2"
194+
className="planning--scale text-end pe-2"
195195
>
196196
<strong>{title}</strong>
197197
</Cell>
@@ -222,7 +222,7 @@ function Capacity({ total, by_user }) {
222222
row={row}
223223
column={1}
224224
colspan={`span ${FIRST_DATA_COLUMN - 1}`}
225-
className="planning--scale text-end pr-2"
225+
className="planning--scale text-end pe-2"
226226
>
227227
<strong>{gettext("Remaining capacity per week")}</strong>
228228
</Cell>
@@ -259,7 +259,7 @@ function UserCapacity({ user, capacity }) {
259259
row={row}
260260
column={1}
261261
colspan={`span ${FIRST_DATA_COLUMN - 1}`}
262-
className="planning--scale text-end pr-2"
262+
className="planning--scale text-end pe-2"
263263
tag="a"
264264
href={user.url}
265265
>
@@ -469,7 +469,7 @@ const Milestones = ({ project }) => {
469469
}}
470470
className="planning--milestones"
471471
/>
472-
<Cell row={row} column={1} className="planning--title is-milestone pl-3">
472+
<Cell row={row} column={1} className="planning--title is-milestone ps-3">
473473
{gettext("milestones")}
474474
</Cell>
475475
{project.milestones.map((m, i) => {
@@ -488,7 +488,7 @@ const Milestones = ({ project }) => {
488488
<Cell
489489
row={row}
490490
column={1}
491-
className={"planning--title is-pw planning--small pl-5"}
491+
className={"planning--title is-pw planning--small ps-5"}
492492
>
493493
<a href={m.url} data-ajaxmodal>
494494
{m.title}
@@ -555,7 +555,7 @@ function Offer({ offer, external_view, work_list }) {
555555
const ctx = useContext(RowContext)
556556
const row = ctx.next()
557557

558-
const classList = ["planning--title is-offer pl-3"]
558+
const classList = ["planning--title is-offer ps-3"]
559559
if (offer.is_declined) classList.push("is-declined")
560560
if (!offer.is_accepted) classList.push("is-not-accepted")
561561

@@ -583,7 +583,7 @@ function Offer({ offer, external_view, work_list }) {
583583
</Cell>
584584
</>
585585
) : (
586-
<Cell row={row} column={1} className="planning--title is-offer pl-3">
586+
<Cell row={row} column={1} className="planning--title is-offer ps-3">
587587
{gettext("Not part of an offer")}
588588
</Cell>
589589
)}
@@ -624,7 +624,7 @@ function Work({ work, hours_per_week, absences, isEven }) {
624624
column={1}
625625
className={`planning--title is-pw ${
626626
work.is_provisional ? "is-provisional" : ""
627-
} planning--small pl-5`}
627+
} planning--small ps-5`}
628628
>
629629
<a href={work.url} data-ajaxmodal>
630630
{work.title}
@@ -726,7 +726,7 @@ const ExternalExpenses = ({ external_work }) => {
726726
}}
727727
className="planning--external"
728728
/>
729-
<Cell row={row} column={1} className="planning--title is-external pl-3">
729+
<Cell row={row} column={1} className="planning--title is-external ps-3">
730730
{gettext("Efforts")}
731731
</Cell>
732732
{external_work.map((work, idx) => (
@@ -755,7 +755,7 @@ const ExternalWork = ({ idx, work }) => {
755755
column={1}
756756
className={`planning--title is-pw ${
757757
work.is_provisional ? "is-provisional" : ""
758-
} planning--small pl-5`}
758+
} planning--small ps-5`}
759759
>
760760
<a href={work.url} data-ajaxmodal>
761761
{work.title} ({work.provided_by})
@@ -846,7 +846,7 @@ function Absences({ absences }) {
846846
// <Cell
847847
// row={row}
848848
// column={1}
849-
// className="planning--small is-project-absence pl-3"
849+
// className="planning--small is-project-absence ps-3"
850850
// >
851851
// {user[0].name}
852852
// </Cell>
@@ -898,7 +898,7 @@ function UserAbsences({ user }) {
898898

899899
return (
900900
<>
901-
<Cell row={row} column={1} className="planning--title is-absence pl-3">
901+
<Cell row={row} column={1} className="planning--title is-absence ps-3">
902902
{user[0]}
903903
</Cell>
904904
{user[1].map((absences, idx) => {

Diff for: timer/activity.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const Activity = connect((state, ownProps) => ({
132132
</div>
133133
<div className="d-flex align-items-center justify-content-between">
134134
<div
135-
className="activity-duration pl-2"
135+
className="activity-duration ps-2"
136136
onClick={() => {
137137
overwriteSeconds(dispatch, { activity, current })
138138
}}
@@ -152,7 +152,7 @@ export const Activity = connect((state, ownProps) => ({
152152
{icons.cog}
153153
</button>
154154
<button
155-
className={`btn btn-sm ml-2 ${
155+
className={`btn btn-sm ms-2 ${
156156
activity.isActive ? "btn-warning" : "btn-light"
157157
}`}
158158
type="button"
@@ -167,7 +167,7 @@ export const Activity = connect((state, ownProps) => ({
167167
{activity.isActive ? icons.pause : icons.play}
168168
</button>
169169
<button
170-
className="btn btn-sm ml-2 btn-light"
170+
className="btn btn-sm ms-2 btn-light"
171171
disabled={!activity.project}
172172
type="button"
173173
onClick={() =>
@@ -181,7 +181,7 @@ export const Activity = connect((state, ownProps) => ({
181181
{icons.pen}
182182
</button>
183183
<button
184-
className={`btn btn-sm ml-2 ${
184+
className={`btn btn-sm ms-2 ${
185185
isReady ? "btn-success" : "btn-light"
186186
}`}
187187
disabled={!activity.project || !isReady}

Diff for: timer/activitySettings.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const ActivitySettings = ({
4444
{gettext("OK")}
4545
</button>
4646
<button
47-
className="btn btn-sm btn-danger ms-auto mr-1"
47+
className="btn btn-sm btn-danger ms-auto me-1"
4848
type="button"
4949
onClick={() => removeActivity()}
5050
>

Diff for: workbench/templates/awt/absence_calendar.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="d-flex w-100 align-items-start justify-content-between">
1111
<h1 class="absences-title">{% translate 'Absence calendar' %}</h1>
1212
<form method="get"
13-
class="d-flex flex-wrap form-search mb-3 ms-auto mr-3"
13+
class="d-flex flex-wrap form-search mb-3 ms-auto me-3"
1414
data-autosubmit>
1515
{% if form.changed_data %}
1616
<a class="btn btn-info"

Diff for: workbench/templates/generic/object_list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ <h5 class="mb-1">{{ object|h }}</h5>
8282
<span class="page-link">&raquo;</span>
8383
</li>
8484
{% endif %}
85-
<li class="pl-3">
85+
<li class="ps-3">
8686
{{ page_obj.start_index }} &ndash; {{ page_obj.end_index }} {% translate 'of' %} {{ page_obj.paginator.count }}
8787
</li>
8888
</ul>

0 commit comments

Comments
 (0)