Update Layout.astro

This commit is contained in:
liyunze 2023-08-08 13:00:42 +08:00
parent a8fc3929fe
commit 2328a0ac62

View file

@ -83,7 +83,10 @@ const { title, description } = Astro.props;
text-decoration: none; text-decoration: none;
} }
code { p code {
max-width: 100%; word-break: break-all; /* This will allow the URL to break at any character */
display: block; /* Ensures the entire URL is on its own line */
width: 100%; /* Make sure the code element takes up the full width of its container */
overflow-x: auto;
} }
</style> </style>