Skip to content

Commit affb77e

Browse files
committed
Fix lesson title too long making layout go wrong
1 parent 359594b commit affb77e

File tree

1 file changed

+13
-19
lines changed
  • wp-content/themes/pub/wporg-learn-2024/src/style

1 file changed

+13
-19
lines changed

wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,14 @@ body.sensei {
4343

4444
.sensei-course-theme-header-content {
4545
> .wp-block-group {
46-
row-gap: 0;
46+
gap: 0;
4747
}
4848

4949
.sensei-course-theme__header__info {
5050
gap: 60px;
5151

5252
.wp-block-sensei-lms-exit-course {
5353
text-decoration: none;
54-
order: 1;
55-
opacity: 1;
5654

5755
@media (min-width: 783px) {
5856
&::before {
@@ -830,25 +828,21 @@ body.sensei {
830828
.sensei-course-theme-header-content {
831829
border-bottom: 1px solid var(--wp--custom--color--border);
832830

833-
@media (min-width: 783px) {
834-
div:last-child::before {
835-
content: "";
836-
display: inline-block;
837-
height: 100%;
838-
border-right: 1px solid var(--sensei-course-progress-bar-color);
839-
position: absolute;
840-
margin-left: -30px;
841-
top: 0;
842-
}
831+
.wporg-site-breadcrumbs__wrapper {
832+
white-space: pre-wrap;
843833
}
844834

845-
.wporg-learn-lesson-facilitator-notes-label {
846-
position: absolute;
847-
right: 130px;
848-
display: unset;
835+
@media (min-width: 783px) {
836+
div:last-child {
837+
height: 100%;
849838

850-
@media (min-width: 783px) {
851-
right: calc(150px + var(--wp--preset--spacing--20));
839+
&::before {
840+
content: "";
841+
display: inline-block;
842+
height: 100%;
843+
border-right: 1px solid var(--sensei-course-progress-bar-color);
844+
margin-right: var(--wp--preset--spacing--30);
845+
}
852846
}
853847
}
854848
}

0 commit comments

Comments
 (0)