Fixed terminal border margin to be consistent across all resolutions

This commit is contained in:
2025-01-03 11:01:35 +02:00
parent 99d1890d56
commit 6e5321a779
2 changed files with 2 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ interface Props {
margin?: string;
}
const { header = "", footer = "", margin = "-1px" } = Astro.props;
const { header = "", footer = "", margin = "-0.1vw" } = Astro.props;
---
<div class="section" style={`margin: ${margin};`}>

View File

@@ -34,12 +34,9 @@ main {
left: 50%;
grid-template-columns: minmax(200px, 1fr);
transform: translate(-50%, -50%);
border: 1px;
border: 0.2vw;
border-style: solid;
background: var(--background);
/* padding: 1.75rem; */
/* width: 55rem; */
/* height: 28rem; */
padding: 2.2svw;
width: 68.75svw;
height: 35svw;
@@ -47,7 +44,6 @@ main {
max-height: 80%;
overflow: hidden;
font-size: 1.125svw;
/* font-size: 0.9rem; */
font-weight: 300;
}