Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
893
Issues
893
List
Boards
Labels
Service Desk
Milestones
Merge Requests
50
Merge Requests
50
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
Commits
54b11bef
Commit
54b11bef
authored
32 minutes ago
by
Emiliano Balbuena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): Apply Pro tile ratio
parent
7a86f2e5
epic/minds-pro
1 merge request
!507
WIP: (feat): Minds Pro (development branch) - Release 3
Pipeline
#78982917
failed with stages
in 6 minutes and 52 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
channel.component.scss
src/app/modules/pro/channel/channel.component.scss
+1
-0
tile.component.html
src/app/modules/pro/channel/tiles/media/tile.component.html
+2
-2
tile.component.scss
src/app/modules/pro/channel/tiles/media/tile.component.scss
+14
-1
No files found.
src/app/modules/pro/channel/channel.component.scss
View file @
54b11bef
...
...
@@ -5,6 +5,7 @@ m-pro--channel {
--m-pro--plain-background-color
:
#ffffff
;
--m-pro--transparent-background-color
:
#ffffff
a0
;
--m-pro--text-color
:
#000000
;
--m-pro--tile-ratio
:
56
.25%
;
display
:
block
;
background
:
none
no-repeat
center
fixed
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/tiles/media/tile.component.html
View file @
54b11bef
<
ng-container
[ngSwitch]=
"getType(entity)"
>
<
div
class=
"m-proChannelTile__container"
[ngSwitch]=
"getType(entity)"
>
<m-video
*ngSwitchCase=
"'object:video'"
...
...
@@ -23,7 +23,7 @@
#img
>
</
ng-container
>
</
div
>
<div
class=
"m-proChannelTile__text"
*ngIf=
"getTitle() || getText()"
>
<h2
[title]=
"getTitle()"
>
{{ getTitle() }}
</h2>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/tiles/media/tile.component.scss
View file @
54b11bef
m-pro--channel-tile
{
cursor
:
pointer
;
width
:
100%
;
height
:
320px
;
&
>
img
{
height
:
calc
(
100%
-
5em
);
...
...
@@ -9,6 +8,20 @@ m-pro--channel-tile {
object-fit
:
cover
;
}
.m-proChannelTile__container
{
position
:
relative
;
height
:
0
;
overflow
:
hidden
;
padding-top
:
var
(
--
m-pro--tile-ratio
);
>
*
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
}
}
.m-proChannelTile__text
{
height
:
4em
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment