Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
verona-modules-aspect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
IQB
verona-modules-aspect
Commits
23e416ea
Commit
23e416ea
authored
1 year ago
by
jojohoch
Browse files
Options
Downloads
Patches
Plain Diff
[editor] Fix layout of add section button in CanvasComponent
parent
e51c5ad5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projects/editor/src/app/components/canvas/canvas.component.html
+2
-2
2 additions, 2 deletions
...ts/editor/src/app/components/canvas/canvas.component.html
projects/editor/src/app/components/canvas/canvas.component.ts
+6
-10
6 additions, 10 deletions
...ects/editor/src/app/components/canvas/canvas.component.ts
with
8 additions
and
12 deletions
projects/editor/src/app/components/canvas/canvas.component.html
+
2
−
2
View file @
23e416ea
...
...
@@ -42,9 +42,9 @@
</div>
</div>
<button
mat-
fab
class=
"add-section-button"
<button
mat-
raised-button
class=
"add-section-button"
[style.width.px]=
"page.hasMaxWidth ? page.maxWidth : null"
(click)=
"addSection()"
>
<mat-icon>
add
</mat-icon>
<mat-icon
class=
"add-section-icon"
>
add
</mat-icon>
</button>
</div>
This diff is collapsed.
Click to expand it.
projects/editor/src/app/components/canvas/canvas.component.ts
+
6
−
10
View file @
23e416ea
...
...
@@ -21,20 +21,16 @@ import { SectionDynamicComponent } from './section-dynamic.component';
height: 100%;
overflow: auto;
}
.add-section-icon{
font-size: 24px;
color: white;
margin-top: -5px;
}
.add-section-button {
width: 100%;
height: 25px;
background-color: #BABABA;
margin-top: 10px;
border-radius: 10%;
}
/* TODO(mdc-migration): The following rule targets internal classes of button that may no longer apply for the MDC version. */
::ng-deep .add-section-button span.mat-button-wrapper {
padding: 0;
}
/* TODO(mdc-migration): The following rule targets internal classes of button that may no longer apply for the MDC version. */
::ng-deep .add-section-button span.mat-button-wrapper mat-icon {
vertical-align: unset;
}
.hidden {
display: none !important;
...
...
@@ -51,7 +47,7 @@ import { SectionDynamicComponent } from './section-dynamic.component';
align-items: stretch;
}
`
]
})
})
export
class
CanvasComponent
{
@
Input
()
page
!
:
Page
;
@
ViewChildren
(
'
sectionComponent
'
)
...
...
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