news design correction padding 16
This commit is contained in:
parent
b5d0d3ec33
commit
7d25b2e71e
@ -53,14 +53,8 @@ function truncateText(text: string, maxLength: number): string {
|
|||||||
// Helper function to format category
|
// Helper function to format category
|
||||||
function formatCategory(category: string): string | null {
|
function formatCategory(category: string): string | null {
|
||||||
if (!category) return null;
|
if (!category) return null;
|
||||||
const categoryMap: { [key: string]: string } = {
|
// Return null for all categories to remove the labels completely
|
||||||
'GLOBAL ISSUES - WORLD AFFAIRS': 'WORLD',
|
return null;
|
||||||
'UN NEWS - GLOBAL NEWS': 'UN NEWS',
|
|
||||||
'GLOBAL NEWS': 'WORLD',
|
|
||||||
};
|
|
||||||
|
|
||||||
const normalizedCategory = category.toUpperCase();
|
|
||||||
return categoryMap[normalizedCategory] || normalizedCategory;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper function to format source
|
// Helper function to format source
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user