File tree Expand file tree Collapse file tree
frontend-manage/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { useTranslations } from 'next-intl'
1616import Link from 'next/link'
1717import { useRouter } from 'next/router'
1818import { useEffect , useState } from 'react'
19+ import { twMerge } from 'tailwind-merge'
1920import AddObjectToCatalogButton from '../administration/AddObjectToCatalogButton'
2021import AddObjectToCatalogModal from '../administration/AddObjectToCatalogModal'
2122import 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
Original file line number Diff line number Diff 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' } }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments