Skip to content

Commit 949fb46

Browse files
committed
add padding in container for StudioDisplayTiles in ConfigViewerPanel
1 parent f71cc5e commit 949fb46

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

frontend/language/src/nb.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@
744744
"process_editor.configuration_panel_set_unique_from_signatures_in_data_types": "Samme person kan ikke signere både denne oppgaven og:",
745745
"process_editor.configuration_panel_set_unique_from_signatures_in_data_types_link": "Bruk unik signatur på denne oppgaven",
746746
"process_editor.configuration_panel_signing_task": "Oppgave: Signering",
747-
"process_editor.configuration_view_panel_id_label": "ID: {{id}}",
747+
"process_editor.configuration_view_panel_id_label": "ID:",
748748
"process_editor.configuration_view_panel_name_label": "Navn: ",
749749
"process_editor.configuration_view_panel_no_task": "Du har ikke valgt noen oppgave",
750750
"process_editor.configuration_view_panel_please_choose_task": "Velg en oppgave for å se detaljer om valgt oppgave.",

frontend/libs/studio-components/src/components/StudioDisplayTile/StudioDisplayTile.test.tsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,11 @@ describe('StudioDisplayTile', () => {
2222
expect(screen.getByText(value)).toBeInTheDocument();
2323
});
2424

25-
it('should show the padlock icon when by default', () => {
25+
it('should show the padlock icon by default', () => {
2626
render(<StudioDisplayTile {...defaultProps} />);
2727
expect(screen.getByTestId(padlockIconTestId)).toBeInTheDocument();
2828
});
2929

30-
it('should show the padlock icon when showPadlock is true', () => {
31-
render(<StudioDisplayTile {...defaultProps} showPadlock />);
32-
expect(screen.getByTestId(padlockIconTestId)).toBeInTheDocument();
33-
});
34-
3530
it('should hide the padlock icon when showPadlock is false', () => {
3631
render(<StudioDisplayTile {...defaultProps} showPadlock={false} />);
3732
expect(screen.queryByTestId(padlockIconTestId)).not.toBeInTheDocument();

frontend/packages/process-editor/src/components/ConfigPanel/ConfigContent/ConfigContent.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
}
2020

2121
.displayTile {
22-
padding-inline: var(--fds-spacing-5);
22+
padding-inline: var(--fds-spacing-4);
2323
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.container {
2+
display: flex;
3+
flex-direction: column;
4+
padding: var(--fds-spacing-4);
5+
gap: var(--fds-spacing-2);
6+
}

frontend/packages/process-editor/src/components/ConfigViewerPanel/ConfigViewerPanel.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { getConfigTitleHelpTextKey, getConfigTitleKey } from '../../utils/config
66
import { useTranslation } from 'react-i18next';
77
import { Alert, Heading, Paragraph } from '@digdir/designsystemet-react';
88
import { ConfigSurface } from '../ConfigSurface/ConfigSurface';
9+
import classes from './ConfigViewerPanel.module.css';
910

1011
export const ConfigViewerPanel = (): React.ReactElement => {
1112
return (
@@ -52,7 +53,7 @@ export const ConfigViewerPanelContent = (): React.ReactElement => {
5253
title: t('process_editor.configuration_panel_header_help_text_title'),
5354
}}
5455
/>
55-
<div>
56+
<div className={classes.container}>
5657
{propertiesToDisplay.map(({ label, value }) => (
5758
<StudioDisplayTile key={label} label={label} value={value} />
5859
))}

0 commit comments

Comments
 (0)