Skip to content

Commit 91f66bc

Browse files
nipunhsrinjoy933
authored andcommitted
fixed map borders on Chapter and Main page (OWASP#1121)
* fixed borders * code formatting updated
1 parent 9298d16 commit 91f66bc

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

frontend/src/pages/Chapters.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,13 @@ const ChaptersPage = () => {
9393
<ChapterMap
9494
geoLocData={searchQuery ? chapters : geoLocData}
9595
showLocal={true}
96-
style={{ height: '400px', width: '100%', zIndex: '0' }}
96+
style={{
97+
height: '400px',
98+
width: '100%',
99+
zIndex: '0',
100+
borderRadius: '0.5rem',
101+
boxShadow: '0 4px 6px rgba(0, 0, 0, 0.1)',
102+
}}
97103
/>
98104
)}
99105
{chapters && chapters.filter((chapter) => chapter.is_active).map(renderChapterCard)}

frontend/src/pages/Home.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,13 @@ export default function Home() {
240240
<ChapterMap
241241
geoLocData={geoLocData}
242242
showLocal={false}
243-
style={{ height: '400px', width: '100%', zIndex: '0' }}
243+
style={{
244+
height: '400px',
245+
width: '100%',
246+
zIndex: '0',
247+
borderRadius: '0.5rem',
248+
boxShadow: '0 4px 6px rgba(0, 0, 0, 0.1)',
249+
}}
244250
/>
245251
</div>
246252
<TopContributors contributors={data.topContributors} maxInitialDisplay={6} />

0 commit comments

Comments
 (0)