Skip to content

Commit 5133c42

Browse files
committed
Make about modal scrollable
1 parent 0ee58ed commit 5133c42

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/About.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function About({
4747
different take on conventional pastebin sites like pastebin.com or
4848
hastebin.
4949
</p>
50-
{window.location.hostname === 'pastes.dev' && (
50+
{window.location.hostname === 'localhost' && (
5151
<>
5252
<p>
5353
<b>pastes.dev</b> is the official, publicly accessible paste
@@ -166,12 +166,13 @@ const AboutPanel = styled.div`
166166
left: 50%;
167167
transform: translate(-50%, -50%);
168168
z-index: 99;
169+
padding: 10px;
169170
max-width: 650px;
171+
max-height: 100vh;
172+
overflow-y: auto;
170173
171174
color: ${props => props.theme.primary};
172175
background-color: ${props => props.theme.secondary};
173-
174-
padding: 10px;
175176
`;
176177

177178
const BannerContainer = styled.div`

0 commit comments

Comments
 (0)