Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Diel
Stud.IP
Commits
ff1b242d
Commit
ff1b242d
authored
2 years ago
by
David Siegfried
Committed by
Jan-Hendrik Willms
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
prevent content overflow, closes #1710
Closes #1710 Merge request
studip/studip!1259
parent
74b9ff76
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/views/contents/overview/index.php
+1
-1
1 addition, 1 deletion
app/views/contents/overview/index.php
resources/assets/stylesheets/scss/contents.scss
+23
-10
23 additions, 10 deletions
resources/assets/stylesheets/scss/contents.scss
with
24 additions
and
11 deletions
app/views/contents/overview/index.php
+
1
−
1
View file @
ff1b242d
...
...
@@ -13,7 +13,7 @@
<?=
htmlReady
(
$navigation
->
getTitle
())
?>
</p>
<p
class=
"content-item-description"
>
<?=
htmlReady
(
$navigation
->
getDescription
())
?>
<?=
htmlReady
(
mila
(
$navigation
->
getDescription
()
,
70
)
)
?>
</p>
</div>
</a>
...
...
This diff is collapsed.
Click to expand it.
resources/assets/stylesheets/scss/contents.scss
+
23
−
10
View file @
ff1b242d
...
...
@@ -13,11 +13,10 @@
.content-item-link
{
height
:
90px
;
padding
:
5px
;
grid-template-columns
:
42px
135px
;
.content-item-img-wrapper
{
margin
:
5px
;
margin-right
:
10px
;
margin-top
:
0
;
margin
:
0
10px
5px
5px
;
width
:
32px
;
}
...
...
@@ -53,24 +52,26 @@
.content-item-link
{
color
:
unset
;
display
:
flex
;
display
:
grid
;
grid-template-columns
:
74px
auto
;
grid-gap
:
5px
;
height
:
130px
;
padding
:
10px
;
padding
:
15px
10px
0
10px
;
transition
:
0
.5s
;
.content-item-img-wrapper
{
margin
:
15px
;
margin-right
:
20px
;
margin-top
:
0
;
width
:
64px
;
}
.content-item-text
{
padding-top
:
-2px
;
.content-item-title
{
color
:
$base-color
;
font-size
:
2rem
;
width
:
100%
;
max-width
:
160px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
...
...
@@ -95,5 +96,17 @@
@media
(
max-width
:
820px
)
{
.content-items
{
grid-template-columns
:
100%
;
.content-item
{
.content-item-link
{
.content-item-text
{
.content-item-title
{
max-width
:
100%
;
text-overflow
:
unset
;
overflow
:
unset
;
}
}
}
}
}
}
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