mirror of
https://github.com/krahets/hello-algo.git
synced 2026-06-10 06:15:46 +08:00
fix mobile reading media overflow (#1896)
This commit is contained in:
@@ -284,6 +284,7 @@ body {
|
||||
.home-div {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
@@ -624,6 +625,18 @@ a:hover .text-button span {
|
||||
height: min(78vw, 32rem);
|
||||
margin: 0 0 1em;
|
||||
}
|
||||
|
||||
.media-block>a {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.media-block .device-on-hover {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.video-container {
|
||||
|
||||
@@ -383,6 +383,7 @@ html:has(body[data-md-color-scheme="default"]) {
|
||||
.home-div {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
@@ -805,4 +806,16 @@ a:hover .device-on-hover {
|
||||
height: min(78vw, 32rem);
|
||||
margin: 0 0 1em;
|
||||
}
|
||||
|
||||
.media-block>a {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.media-block .device-on-hover {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user