Skip to content

Commit 03548a1

Browse files
committed
chore(apps/frontend-*): resolve padding and margin issues with new frontend design elements
1 parent ba3b91a commit 03548a1

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

apps/frontend-manage/src/components/catalog/actions/ObjectImport.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { useTranslations } from 'next-intl'
1616
import Link from 'next/link'
1717
import { useRouter } from 'next/router'
1818
import { useEffect, useState } from 'react'
19+
import { twMerge } from 'tailwind-merge'
1920
import AddObjectToCatalogButton from '../administration/AddObjectToCatalogButton'
2021
import AddObjectToCatalogModal from '../administration/AddObjectToCatalogModal'
2122
import CatalogCollectionListItem from '../administration/CatalogCollectionListItem'
@@ -93,7 +94,7 @@ function ObjectImport({
9394
</Link>
9495
)}
9596
<H2
96-
className={{ root: 'md:-mb-5' }}
97+
className={{ root: twMerge(!collectionName && 'md:-mb-5') }}
9798
data={{ cy: 'catalog-browser-title' }}
9899
>
99100
{collectionName

apps/frontend-manage/src/components/questions/manipulation/ElementEditForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function ElementEditForm({
171171
dataSecondaryAction={{ cy: 'close-element-modal-button' }}
172172
className={{
173173
title: 'text-xl',
174-
content: 'text-sm md:text-base 2xl:max-w-[1400px]',
174+
content: 'h-max text-sm md:text-base 2xl:max-w-[1400px]',
175175
footer: twMerge(isTemplate ? 'justify-end' : 'justify-between'),
176176
}}
177177
dataCloseButton={{ cy: 'close-element-modal' }}

apps/frontend-pwa/src/components/common/LiveQuizLeaderboard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ function LiveQuizLeaderboard({
8787
const leaderboard = data.liveQuizLeaderboard ?? []
8888
return (
8989
<div className={twMerge('space-y-4 pt-4', className)}>
90-
<H2>{t('shared.leaderboard.lqLeaderboard')}</H2>
90+
<H2 className={{ root: '-mb-2' }}>
91+
{t('shared.leaderboard.lqLeaderboard')}
92+
</H2>
9193
<div>
9294
{leaderboard.length && leaderboard.length > 0 ? (
9395
<Leaderboard

apps/frontend-pwa/src/pages/session/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function Index({ id }: { id: string }) {
208208
<LiveQuizLeaderboard quizId={id} />
209209
</div>
210210
) : (
211-
<UserNotification type="info">
211+
<UserNotification type="info" className={{ root: 'mt-4' }}>
212212
{t('pwa.liveQuiz.noActiveQuestion')}
213213
</UserNotification>
214214
)

0 commit comments

Comments
 (0)