From b5793b671ca3cd0cfa328f7773866a240a59fc16 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Thu, 21 Nov 2024 15:53:30 +0100 Subject: [PATCH] fix: margins and styling on app item in fullscreen --- i18n/en.pot | 7 ++-- src/components/Item/AppItem/Item.js | 30 ++++++++--------- .../Item/AppItem/styles/AppItem.module.css | 33 +++++++++++++++++++ src/components/styles/ItemGrid.css | 11 +------ 4 files changed, 53 insertions(+), 28 deletions(-) create mode 100644 src/components/Item/AppItem/styles/AppItem.module.css diff --git a/i18n/en.pot b/i18n/en.pot index f4c2af120..f12e1fdc4 100644 --- a/i18n/en.pot +++ b/i18n/en.pot @@ -5,8 +5,8 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -"POT-Creation-Date: 2024-11-12T15:09:25.555Z\n" -"PO-Revision-Date: 2024-11-12T15:09:25.556Z\n" +"POT-Creation-Date: 2024-11-21T14:44:35.575Z\n" +"PO-Revision-Date: 2024-11-21T14:44:35.577Z\n" msgid "Untitled dashboard" msgstr "Untitled dashboard" @@ -26,6 +26,9 @@ msgstr "Show fewer dashboards" msgid "Show more dashboards" msgstr "Show more dashboards" +msgid "{{appKey}} app not found" +msgstr "{{appKey}} app not found" + msgid "Remove this item" msgstr "Remove this item" diff --git a/src/components/Item/AppItem/Item.js b/src/components/Item/AppItem/Item.js index 30a114028..61209aecc 100644 --- a/src/components/Item/AppItem/Item.js +++ b/src/components/Item/AppItem/Item.js @@ -1,4 +1,6 @@ +import i18n from '@dhis2/d2-i18n' import { Divider, colors, spacers, IconQuestion24 } from '@dhis2/ui' +import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { connect } from 'react-redux' @@ -9,8 +11,7 @@ import { } from '../../../reducers/itemFilters.js' import ItemHeader from '../ItemHeader/ItemHeader.js' import { getIframeSrc } from './getIframeSrc.js' - -const FS_CONTROLS_BUFFER = '40px' // space for the fullscreen controls at bottom +import styles from './styles/AppItem.module.css' const AppItem = ({ dashboardMode, item, itemFilters, apps, isFS }) => { let appDetails @@ -41,27 +42,24 @@ const AppItem = ({ dashboardMode, item, itemFilters, apps, isFS }) => {