Skip to content

Commit 0b0000d

Browse files
authored
[Fleet Management] Fix driver overlay styling in Firefox & Safari (#90)
1 parent 3a7f5ea commit 0b0000d

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

Diff for: projects/fleet-management-grid/src/app/fleet-management-grid/fleet-management-grid.component.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ igx-card {
236236

237237
.overlay-location-content,
238238
.overlay-driver-content {
239+
display: flex;
239240
height: 48%;
240241
width: 100%;
241242
padding: 0px;
@@ -260,8 +261,6 @@ igx-card {
260261

261262
.driver-block-container {
262263
display: flex;
263-
flex-direction: row;
264-
justify-self: center;
265264
width: 85%;
266265
}
267266

Diff for: projects/fleet-management-grid/src/app/services/data.service.ts

+6-11
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,15 @@ export class DataService {
1717
private costData = COST_DATA;
1818
private utilizationData = UTILIZATION_DATA;
1919

20-
private bind: () => void;
21-
2220
private fuelCostsCache: { [key: string]: any[] } = {};
2321

2422
constructor() {
25-
this.bind = () => {
26-
this.utilizationData.forEach(vehicle => {
27-
(vehicle.utilization as any).__dataIntents = {
28-
"'2023'": ["SeriesTitle/2023"],
29-
"'2024'": ["SeriesTitle/2024"]
30-
};
31-
})
32-
};
33-
this.bind();
23+
this.utilizationData.forEach(vehicle => {
24+
(vehicle.utilization as any).__dataIntents = {
25+
"'2023'": ["SeriesTitle/2023"],
26+
"'2024'": ["SeriesTitle/2024"]
27+
};
28+
})
3429
}
3530

3631
public getVehiclesData() {

0 commit comments

Comments
 (0)