diff --git a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/mission_actions/GetActivityReports.kt b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/mission_actions/GetActivityReports.kt
index 7014c532ca..bfc232f18a 100644
--- a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/mission_actions/GetActivityReports.kt
+++ b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/mission_actions/GetActivityReports.kt
@@ -80,7 +80,8 @@ class GetActivityReports(
missions.first { mission -> mission.id == control.missionId }
} catch (e: NoSuchElementException) {
logger.error(
- "Mission id '${control.missionId}' linked to ${control.actionType} control id '${control.id}' could not be found. Is this mission deleted ?", e
+ "Mission id '${control.missionId}' linked to ${control.actionType} control id '${control.id}' could not be found. Is this mission deleted ?",
+ e,
)
return@map null
diff --git a/frontend/src/features/BackOffice/components/BackofficeMenu/index.tsx b/frontend/src/features/BackOffice/components/BackofficeMenu/index.tsx
index f4cab73fd9..546e3d652c 100644
--- a/frontend/src/features/BackOffice/components/BackofficeMenu/index.tsx
+++ b/frontend/src/features/BackOffice/components/BackofficeMenu/index.tsx
@@ -31,9 +31,8 @@ const Wrapper = styled.div`
flex-direction: column;
letter-spacing: 0.5px;
line-height: 1;
- min-width: 200px;
+ min-width: 240px;
padding: 16px 24px;
- width: 200px;
`
const StyledNavLink = styled(NavLink)`
diff --git a/frontend/src/features/Backoffice/tableCells.jsx b/frontend/src/features/Backoffice/tableCells.jsx
index 0316d6e0a1..0138f17cf3 100644
--- a/frontend/src/features/Backoffice/tableCells.jsx
+++ b/frontend/src/features/Backoffice/tableCells.jsx
@@ -362,29 +362,28 @@ export const renderRowExpanded = rowData => {
return (
-
+
Engins
{rowData.gears?.join(', ') || -}
-
-
+
+
Zones FAO
{rowData.faoAreas?.join(', ') || -}
-
-
+
+
Espèces cibles
{rowData.targetSpecies?.join(', ') || -}
-
-
+
+
Prises accessoires
{rowData.bycatchSpecies?.join(', ') || -}
-
+
@@ -415,53 +414,26 @@ const DeleteIcon = styled(DeleteIconSVG)`
const TableBody = styled.tbody``
const Fields = styled.table`
- padding: 0;
- width: inherit;
- display: table;
- margin: 0;
- min-width: 40%;
- line-height: 0.2em;
text-align: left;
`
-const Field = styled.tr`
- margin: 5px 5px 5px 0;
- border: none;
- background: none;
- line-height: 0.5em;
-`
-
const Key = styled.th`
- color: ${COLORS.slateGray};
- flex: initial;
- display: inline-block;
- margin: 0;
- border: none;
- padding: 5px 5px 5px 0;
- background: none;
- width: max-content;
- line-height: 0.5em;
- height: 0.5em;
+ color: ${p => p.theme.color.slateGray};
font-size: 13px;
font-weight: normal;
+ line-height: 1.5;
+ width: 140px;
`
const Value = styled.td`
+ color: ${p => p.theme.color.gunMetal};
font-size: 13px;
- color: ${COLORS.gunMetal};
- margin: 0;
- text-align: left;
- padding: 1px 5px 5px 5px;
- background: none;
- border: none;
- line-height: normal;
font-weight: 500;
`
const NoValue = styled.span`
- color: ${COLORS.slateGray};
+ color: ${p => p.theme.color.slateGray};
font-weight: 300;
- line-height: normal;
`
const Delete = styled.div`
diff --git a/frontend/src/features/ControlObjective/components/ControlObjectiveTable/SeaFrontControlObjectives.tsx b/frontend/src/features/ControlObjective/components/ControlObjectiveTable/SeaFrontControlObjectives.tsx
index 8bff0cfc83..6dcb1f6ee0 100644
--- a/frontend/src/features/ControlObjective/components/ControlObjectiveTable/SeaFrontControlObjectives.tsx
+++ b/frontend/src/features/ControlObjective/components/ControlObjectiveTable/SeaFrontControlObjectives.tsx
@@ -4,7 +4,6 @@ import styled from 'styled-components'
import { useDebouncedCallback } from 'use-debounce'
import { useGetFleetSegmentsQuery } from '../../../../api/fleetSegment'
-import { COLORS } from '../../../../constants/constants'
import { LoadingSpinnerWall } from '../../../../ui/LoadingSpinnerWall'
import { BackOfficeTitle } from '../../../BackOffice/components/BackOfficeTitle'
import {
@@ -244,12 +243,12 @@ export function SeaFrontControlObjectives({ data, facade, title, year }: SeaFron
}}
onSortColumn={handleSortColumn as any}
renderRowExpanded={renderRowExpanded}
- rowExpandedHeight={125}
+ rowExpandedHeight={100}
rowHeight={36}
rowKey="id"
sortColumn={sortColumn}
sortType={sortType}
- width={720}
+ width={769}
>
@@ -261,12 +260,12 @@ export function SeaFrontControlObjectives({ data, facade, title, year }: SeaFron
-
+
Nom du segment
-
+
Obj. contrôles Port
-
+
Obj. contrôles Mer
-
+
@@ -336,12 +335,12 @@ export function SeaFrontControlObjectives({ data, facade, title, year }: SeaFron
}
const AddSegment = styled.div`
- text-align: left;
+ color: ${p => p.theme.color.gunMetal};
+ line-height: 10px;
margin-left: 5px;
margin-top: -10px;
- line-height: 10px;
+ text-align: left;
width: fit-content;
- color: ${COLORS.gunMetal};
`
const Wrapper = styled.div`
@@ -355,13 +354,17 @@ const Wrapper = styled.div`
margin-top: -3px;
}
+ .rs-picker-toggle {
+ width: 120px;
+ }
+
.rs-picker-default .rs-picker-toggle.rs-btn-xs {
padding-left: 5px;
}
.rs-picker-has-value .rs-btn .rs-picker-toggle-value,
.rs-picker-has-value .rs-picker-toggle .rs-picker-toggle-value {
- color: ${COLORS.charcoal};
+ color: ${p => p.theme.color.charcoal};
}
.rs-picker-toggle-wrapper .rs-picker-toggle.rs-btn-xs {
@@ -369,7 +372,7 @@ const Wrapper = styled.div`
}
.rs-input:focus {
- background: ${COLORS.charcoal};
- color: ${COLORS.white};
+ background: ${p => p.theme.color.charcoal};
+ color: ${p => p.theme.color.white};
}
`
diff --git a/frontend/src/features/ControlObjective/components/ControlObjectiveTable/index.tsx b/frontend/src/features/ControlObjective/components/ControlObjectiveTable/index.tsx
index 04ba087651..9367a28529 100644
--- a/frontend/src/features/ControlObjective/components/ControlObjectiveTable/index.tsx
+++ b/frontend/src/features/ControlObjective/components/ControlObjectiveTable/index.tsx
@@ -181,7 +181,7 @@ const Year = styled.div`
.rs-picker-default .rs-picker-toggle.rs-btn-xs {
padding-left: 5px;
- width: 120px;
+ width: 144px;
}
.rs-picker-has-value .rs-btn .rs-picker-toggle-value,
diff --git a/frontend/src/pages/BackofficePage.tsx b/frontend/src/pages/BackofficePage.tsx
index 3801432880..56bc0eab08 100644
--- a/frontend/src/pages/BackofficePage.tsx
+++ b/frontend/src/pages/BackofficePage.tsx
@@ -44,9 +44,14 @@ export function BackofficePage() {
}
const BackofficeWrapper = styled.div`
+ box-sizing: border-box;
display: flex;
font-size: 13px;
height: 100%;
overflow: hidden;
width: 100%;
+
+ * {
+ box-sizing: border-box;
+ }
`