Skip to content

Commit

Permalink
Remove default button padding (#5204)
Browse files Browse the repository at this point in the history
# Motivation

Some account menu entries are rendered as links, while others are
rendered as buttons. By default the buttons have an extra padding before
and after them.

# Changes

- Remove default button padding from account menu entries.

# Tests

- Manually.

| Before | After |
|--------|--------|
| <img width="255" alt="Screenshot 2024-07-16 at 17 32 11"
src="https://github.com/user-attachments/assets/82b0f31a-1773-46e6-99ed-b46948a22861">
| <img width="254" alt="Screenshot 2024-07-16 at 17 40 47"
src="https://github.com/user-attachments/assets/dc15da3d-2ac3-4652-b844-42bcbbe1f183">
|



# Todos

- [ ] Add entry to changelog (if necessary).
Not necessary.
  • Loading branch information
mstrasinskis authored Jul 17, 2024
1 parent 8f237ac commit 120dc09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/lib/components/header/Logout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
button {
@include account-menu.button;
padding: 0;
}
</style>
1 change: 1 addition & 0 deletions frontend/src/lib/components/header/SettingsButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
button {
@include account-menu.button;
padding: 0;
}
</style>

0 comments on commit 120dc09

Please sign in to comment.