Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Add button does not align to the right #33

Open
datauduong opened this issue Mar 18, 2018 · 2 comments
Open

The Add button does not align to the right #33

datauduong opened this issue Mar 18, 2018 · 2 comments

Comments

@datauduong
Copy link

Hi,

I have downloaded the project and try and also follow the step 1-10, I couldn't get the Add button to appear to the right (Nothing appear)

app.component.html
<button mat-fab (click)="openAdminDialog()" class="fab-bottom-right">
add

app.component.css
.fab-bottom-right {
position: fixed;
right: 16px;
bottom: 16px;
}

with out .fab-bottom-right css, the button appeared on the bottom left hand side.
Thanks.
Regards Dat.

@datauduong
Copy link
Author

datauduong commented Mar 18, 2018

I have copy the button code to another angular test page it is working, something is interfered with the button visibility.

app.component.css
:host {
display: flex;
flex: 1;
}

mat-sidenav {
width: 320px;
}

:host /deep/ .mat-list-item-content {
height: 100% !important;
}

.content {
padding: 12px;
}

mat-list-item mat-icon {
overflow: hidden;
width: 64px;
height: 64px;
/* border-radius: 50%; */
margin: 12px;
}

.mat-sidenav-content {
transform: none !important;
}

.fab-bottom-right {
position: fixed;
right: 16px;
bottom: 16px;
}

@datauduong
Copy link
Author

When I am making the windows smaller, I can see the button moving up.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant