Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
867
Issues
867
List
Boards
Labels
Service Desk
Milestones
Merge Requests
44
Merge Requests
44
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Compare Revisions
dd17b1a84b8855bdbfa043db89a6c8823a55fe56...d20d7ed4feb31844a24bcf91fc8122a84c1abc4b
Source
d20d7ed4feb31844a24bcf91fc8122a84c1abc4b
Select Git revision
...
Target
dd17b1a84b8855bdbfa043db89a6c8823a55fe56
Select Git revision
Compare
Commits (2)
(fix): further decrease tile height (except first two)
· 443374c9
Marcelo Rivera
authored
26 minutes ago
443374c9
(feat): open blogs in new tab on click
· d20d7ed4
Marcelo Rivera
authored
13 minutes ago
d20d7ed4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
12 deletions
+18
-12
list.component.html
src/app/modules/pro/channel/list/list.component.html
+2
-2
list.component.scss
src/app/modules/pro/channel/list/list.component.scss
+1
-1
list.component.ts
src/app/modules/pro/channel/list/list.component.ts
+14
-8
tile.component.scss
src/app/modules/pro/channel/tile/tile.component.scss
+1
-1
No files found.
src/app/modules/pro/channel/list/list.component.html
View file @
d20d7ed4
...
...
@@ -29,7 +29,7 @@
<ng-container
*
ngIf=
"type === 'images' || type === 'videos' || type === 'blogs'"
>
<m-pro--channel-tile
[
entity
]="
entity
"
(
click
)="
o
penModal
(
entity
)"
(
click
)="
o
nTileClicked
(
entity
)"
></m-pro--channel-tile>
</ng-container>
<ng-container
*
ngIf=
"type === 'groups'"
>
...
...
@@ -42,7 +42,7 @@
<ng-container
*
ngIf=
"type === 'activities'"
>
<minds-activity
[
object
]="
entity
"
(
click
)="
o
penModal
(
entity
)"
(
click
)="
o
nTileClicked
(
entity
)"
></minds-activity>
</ng-container>
<li
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/list/list.component.scss
View file @
d20d7ed4
...
...
@@ -87,7 +87,7 @@ m-pro--channel-list {
ul
.m-proChannelListContent__list
{
display
:
grid
;
grid-template-columns
:
repeat
(
4
,
1fr
);
grid-auto-rows
:
minmax
(
30
0px
,
auto
);
grid-auto-rows
:
minmax
(
22
0px
,
auto
);
grid-gap
:
32px
32px
;
list-style
:
none
;
padding
:
0
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/list/list.component.ts
View file @
d20d7ed4
...
...
@@ -170,15 +170,21 @@ export class ProChannelListComponent implements OnInit, OnDestroy {
return
routeType
;
}
openModal
(
entity
:
any
)
{
if
(
entity
.
subtype
!==
'
video
'
&&
entity
.
subtype
!==
'
image
'
)
{
return
;
onTileClicked
(
entity
:
any
)
{
switch
(
this
.
getType
(
entity
))
{
case
'
object:blog
'
:
window
.
open
(
`
${
window
.
Minds
.
site_url
}${
entity
.
route
}
/`
,
'
_blank
'
);
break
;
case
'
object:image
'
:
case
'
object:video
'
:
this
.
modalService
.
create
(
ProContentModalComponent
,
entity
,
{
class
:
'
m-overlayModal--media
'
}).
present
();
break
;
}
}
this
.
modalService
.
create
(
ProContentModalComponent
,
entity
,
{
class
:
'
m-overlayModal--media
'
}).
present
();
private
getType
(
entity
:
any
)
{
return
entity
.
type
===
'
object
'
?
`
${
entity
.
type
}
:
${
entity
.
subtype
}
`
:
entity
.
type
;
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/tile/tile.component.scss
View file @
d20d7ed4
ul
.m-proChannelListContent__list
li
:nth-child
(
n
+
3
)
m-pro--channel-tile
{
height
:
30
0px
!
important
;
height
:
22
0px
!
important
;
&
>
img
{
height
:
100%
!
important
;
...
...
This diff is collapsed.
Click to expand it.