Skip to content

Commit 87b456e

Browse files
Fix border-radius overlap in cards with p-0 body
- Add border-radius to editor, debug console, and arena container - Add general CSS rules for card-body.p-0 children to inherit border-radius - Add border-radius to markdown-body in docs.html - Update cache version to v=7
1 parent c9f253b commit 87b456e

3 files changed

Lines changed: 40 additions & 3 deletions

File tree

app/css/style.css

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@ body {
2525
min-height: 400px;
2626
font-size: 14px;
2727
transition: height 0.3s ease-in-out, min-height 0.3s ease-in-out;
28+
/* Match card border-radius for bottom corners */
29+
border-bottom-left-radius: var(--bs-card-inner-border-radius, 0.375rem);
30+
border-bottom-right-radius: var(--bs-card-inner-border-radius, 0.375rem);
31+
}
32+
33+
/* ACE Editor content also needs border-radius */
34+
#editor .ace_scroller,
35+
#editor .ace_content,
36+
#editor .ace_gutter {
37+
border-bottom-left-radius: var(--bs-card-inner-border-radius, 0.375rem);
38+
}
39+
40+
#editor .ace_scroller,
41+
#editor .ace_content {
42+
border-bottom-right-radius: var(--bs-card-inner-border-radius, 0.375rem);
2843
}
2944

3045
/* Reduced editor height for gamepad mode (Challenge 7) */
@@ -61,7 +76,7 @@ body {
6176
padding-top: 100%; /* 1:1 aspect ratio */
6277
background-color: var(--arena-bg);
6378
border: 2px solid var(--arena-border);
64-
border-radius: 4px;
79+
border-radius: var(--bs-card-inner-border-radius, 0.375rem);
6580
overflow: hidden;
6681
}
6782

@@ -71,6 +86,23 @@ body {
7186
left: 0;
7287
width: 100%;
7388
height: 100%;
89+
border-radius: inherit;
90+
}
91+
92+
/* Fix for card-body p-0 - ensure inner elements clip to card corners */
93+
.card-body.p-0 > *:last-child {
94+
border-bottom-left-radius: var(--bs-card-inner-border-radius, 0.375rem);
95+
border-bottom-right-radius: var(--bs-card-inner-border-radius, 0.375rem);
96+
}
97+
98+
.card-body.p-0 > *:first-child:last-child {
99+
border-radius: var(--bs-card-inner-border-radius, 0.375rem);
100+
}
101+
102+
/* Card without header - first child needs top radius too */
103+
.card > .card-body.p-0:first-child > *:first-child {
104+
border-top-left-radius: var(--bs-card-inner-border-radius, 0.375rem);
105+
border-top-right-radius: var(--bs-card-inner-border-radius, 0.375rem);
74106
}
75107

76108
/* Debug Console */
@@ -84,6 +116,9 @@ body {
84116
overflow-y: auto;
85117
white-space: pre-wrap;
86118
word-wrap: break-word;
119+
/* Match card border-radius for bottom corners */
120+
border-bottom-left-radius: var(--bs-card-inner-border-radius, 0.375rem);
121+
border-bottom-right-radius: var(--bs-card-inner-border-radius, 0.375rem);
87122
}
88123

89124
.debug-console .error {

app/docs.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
rel="stylesheet"
2323
/>
2424
<!-- Custom CSS -->
25-
<link href="css/style.css?v=2" rel="stylesheet" />
25+
<link href="css/style.css?v=7" rel="stylesheet" />
2626
<style>
2727
.markdown-body {
2828
box-sizing: border-box;
@@ -31,6 +31,8 @@
3131
margin: 0;
3232
padding: 2rem 3rem;
3333
background-color: #0d1117;
34+
/* Match card border-radius to prevent corner overlap */
35+
border-radius: var(--bs-card-inner-border-radius, 0.375rem);
3436
}
3537

3638
@media (max-width: 767px) {

app/simulator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
rel="stylesheet"
1818
/>
1919
<!-- Custom CSS -->
20-
<link href="css/style.css?v=4" rel="stylesheet" />
20+
<link href="css/style.css?v=7" rel="stylesheet" />
2121
</head>
2222
<body class="bg-dark">
2323
<!-- Navbar -->

0 commit comments

Comments
 (0)