fix load more and improve vide page

This commit is contained in:
2025-04-08 10:49:46 +04:00
parent a227247f57
commit 133b2e9d5e
6 changed files with 361 additions and 92 deletions
+60 -27
View File
@@ -10,6 +10,9 @@
.video-player-container {
grid-column: 1 / -1;
grid-row: 1;
max-width: 900px;
margin: 0 auto;
width: 100%;
}
.video-player {
@@ -54,6 +57,7 @@
.video-info {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
@@ -66,6 +70,8 @@
flex-direction: row;
align-items: center;
gap: 1rem;
margin-bottom: 0;
flex-wrap: nowrap;
}
.video-views, .video-date {
@@ -74,29 +80,41 @@
display: flex;
align-items: center;
gap: 5px;
height: 36px;
white-space: nowrap;
}
.video-views i, .video-date i {
font-size: 0.9375rem;
color: #555;
color: var(--primary-red);
display: flex;
align-items: center;
justify-content: center;
width: 20px;
}
.video-actions {
display: flex;
flex-direction: row;
gap: 1.5rem;
align-items: center;
flex-wrap: nowrap;
}
.action-button {
display: flex;
align-items: center;
justify-content: center;
background: none;
border: none;
cursor: pointer;
gap: 0.5rem;
font-size: 0.875rem;
padding: 0.5rem;
padding: 0.5rem 0.75rem;
border-radius: 4px;
transition: background-color 0.2s;
height: 36px;
min-width: 80px;
}
.action-button:hover {
@@ -108,6 +126,12 @@
color: #444;
}
.action-button span {
display: inline-flex;
align-items: center;
height: 100%;
}
.video-secondary-info {
margin-bottom: 30px;
}
@@ -468,13 +492,15 @@
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
.video-player-container {
max-width: 100%;
}
}
@media (max-width: 768px) {
.video-player-container {
margin-left: -20px;
margin-right: -20px;
width: calc(100% + 40px);
margin-bottom: 15px;
}
.video-player {
@@ -487,13 +513,23 @@
.video-info {
flex-direction: column;
gap: 1rem;
align-items: flex-start;
}
.video-metadata {
width: 100%;
margin-bottom: 10px;
}
.video-actions {
width: 100%;
justify-content: space-between;
flex-wrap: wrap;
}
.action-button {
padding: 0.5rem;
min-width: 70px;
}
.suggestion-list {
@@ -506,30 +542,36 @@
display: flex;
flex-direction: column;
gap: 20px;
margin-top: 10px;
}
.video-player-container {
width: 100vw;
margin-left: -20px;
margin-right: -20px;
order: 1;
margin-bottom: 0;
}
.video-content,
.video-suggestions {
order: 2;
width: 100%;
}
.video-title {
font-size: 1.2rem;
font-size: 1.25rem;
}
.video-actions {
flex-wrap: wrap;
gap: 0.5rem;
justify-content: space-around;
}
.action-button {
padding: 0.3rem;
font-size: 0.75rem;
min-width: 60px;
padding: 0.5rem 0.25rem;
}
.video-views, .video-date {
font-size: 0.8125rem;
}
.comment {
@@ -537,29 +579,20 @@
}
.comment-avatar {
display: none;
margin-bottom: 10px;
}
.suggested-video {
display: flex;
flex-direction: row;
grid-template-columns: 120px 1fr;
}
.suggested-video-thumbnail {
width: 120px;
min-width: 120px;
height: 68px;
padding-top: 0;
margin-right: 10px;
}
.suggested-video-info {
padding: 5px;
width: calc(100% - 120px);
height: 67px;
}
.suggested-video-title {
-webkit-line-clamp: 2;
font-size: 0.875rem;
}
}