Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Container registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
videoag
frontend
Commits
e4259bee
Commit
e4259bee
authored
Jun 2, 2024
by
Simon Künzel
Browse files
Options
Downloads
Patches
Plain Diff
Fix elements moving on focus in lecture/course listing
parent
543f65af
No related branches found
No related tags found
1 merge request
!7
Rollout to production
Pipeline
#5971
failed
Jun 2, 2024
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/CourseListing.tsx
+1
-1
1 addition, 1 deletion
src/components/CourseListing.tsx
src/pages/courses.tsx
+1
-1
1 addition, 1 deletion
src/pages/courses.tsx
src/styles/globals.scss
+8
-4
8 additions, 4 deletions
src/styles/globals.scss
with
10 additions
and
6 deletions
src/components/CourseListing.tsx
+
1
−
1
View file @
e4259bee
...
...
@@ -283,7 +283,7 @@ export function LectureListItem({
return
(
<
li
className
=
{
`list-group-item
lecture
-list-item
${
lecture
.
no_recording
?
"
text-muted
"
:
""
}
`
}
className
=
{
`list-group-item
highlighting
-list-item
${
lecture
.
no_recording
?
"
text-muted
"
:
""
}
`
}
id
=
{
`lecture-
${
lecture
.
id
}
`
}
{
...
props
}
>
...
...
This diff is collapsed.
Click to expand it.
src/pages/courses.tsx
+
1
−
1
View file @
e4259bee
...
...
@@ -36,7 +36,7 @@ export function CourseItem({
return
(
<
li
className
=
{
"
list-group-item list-group-item-condensed
course
-list-item d-flex
"
+
color
}
className
=
{
"
list-group-item list-group-item-condensed
highlighting
-list-item d-flex
"
+
color
}
id
=
{
`course-
${
course
.
id
}
`
}
{
...
props
}
>
...
...
This diff is collapsed.
Click to expand it.
src/styles/globals.scss
+
8
−
4
View file @
e4259bee
...
...
@@ -234,12 +234,16 @@ $link-decoration: none;
@import
url(videojs-markers.css)
;
.
lecture
-list-item
:focus-within
{
border
:
2px
solid
var
(
--
bs-primary
);
.
highlighting
-list-item
:
not
(
:
focus-within
)
{
padding
:
calc
(
var
(
--
bs-list-group-item-padding-y
)
+
1px
)
calc
(
var
(
--
bs-list-group-item-padding-x
)
+
1px
);
}
.course-list-item
:focus-within
{
border
:
2px
solid
var
(
--
bs-primary
);
.highlighting-list-item
+
.highlighting-list-item
:not
(
:focus-within
)
{
border-top
:
var
(
--
bs-list-group-border-width
)
solid
rgba
(
0
,
0
,
0
,
0
);
}
.highlighting-list-item
:focus-within
{
border
:
calc
(
var
(
--
bs-list-group-border-width
)
+
1px
)
solid
var
(
--
bs-primary
);
}
@media
(
min-height
:
768px
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment