Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
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
GéoContrib
Géocontrib Frontend
Merge requests
!451
REDMINE_ISSUE-14461
| Responsive - Filtre écrasés sur page des projets
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
REDMINE_ISSUE-14461
| Responsive - Filtre écrasés sur page des projets
redmine-issue/14461
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Florent Lavelle
requested to merge
redmine-issue/14461
into
develop
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
915521e6
1 commit,
2 years ago
1 file
+
35
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/components/Projects/ProjectsMenu.vue
+
35
−
3
Options
@@ -171,12 +171,28 @@ export default {
content
[
0
].
style
.
maxHeight
=
content
[
0
].
scrollHeight
+
5
+
'
px
'
;
}
});
window
.
addEventListener
(
'
resize
'
,
this
.
handleResize
);
},
methods
:
{
...
mapActions
(
'
projects
'
,
[
'
SEARCH_PROJECTS
'
])
]),
handleResize
()
{
if
(
window
.
innerWidth
<=
700
)
{
const
icon
=
document
.
getElementsByClassName
(
'
caret
'
);
icon
[
0
].
classList
.
toggle
(
'
right
'
);
const
content
=
document
.
getElementsByClassName
(
'
filters
'
);
content
[
0
].
classList
.
toggle
(
'
hidden
'
);
if
(
content
[
0
].
style
.
maxHeight
){
content
[
0
].
style
.
maxHeight
=
null
;
}
else
{
content
[
0
].
style
.
maxHeight
=
content
[
0
].
scrollHeight
+
5
+
'
px
'
;
}
}
}
}
};
</
script
>
@@ -194,9 +210,10 @@ export default {
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: flex-end;
align-items: center;
margin-bottom: 1rem;
.accordion {
width: fit-content;
width: fit-content
!important
;
.collapsible-filters {
font-size: 1.25em;
padding-right: 0;
@@ -246,4 +263,19 @@ export default {
border: none;
}
}
@media screen and (max-width: 700px) {
.filters-container {
.filters {
display: flex;
flex-direction: column;
.transition-properties(max-height 0.2s ease-out;);
.item {
width: 100%;
}
}
}
}
</
style
>
Loading