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

fixate the logout button to the right-side of the nav #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
.logout-button {
margin-top: 30px;
margin-bottom: 30px;
padding-right: 16px;
margin-left: auto
margin-left: 240px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bitte ohne hardcoded Pixel values. Mit ner flexbox geht das ohne, dass es zusammenbricht, wenn sich die Breite der Navbar aendert.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Habe leider keine elegante Möglichkeit gefunden gestern. Im Template steht der Button in dem selben mat-list-item wie der Username und das Logo, und die werden auch gleichmäßig verteilt, aber irgendwie wird der Platz in der Zeile nie richtig ausgenutzt und ist eher links-bündig. https://github.com/agri-gaia/DataDashboard/blob/main/src/modules/app/components/navigation/navigation.component.html#L19

position: absolute;
}

.username {
Expand Down