Ensure correct rendering of logo in sidebars

This commit is contained in:
nachtjasmin 2023-12-27 20:34:06 +01:00
parent e14ae645d6
commit 8e906d0ea8
No known key found for this signature in database
1 changed files with 27 additions and 0 deletions
app/javascript/styles

View File

@ -4,3 +4,30 @@
.account__header__tabs__name a {
color: inherit;
}
// app/javascript/mastodon/features/ui/components/navigation_panel.jsx
// We hide the logo from the sidebar. It's kept in the JSX, to keep the modifications of the React
// codebase as small as possible.
.navigation-panel__logo {
display: none;
}
// app/views/layouts/admin.html.haml
// The logo is set to a size of 100x100px. We don't have a funny/beautiful icon for hometown in the
// admin sidebar, therefore we unset the dimensions [1], center the link [2] and unset the color for it [3].
.admin-wrapper .sidebar .logo {
// 1
width: unset;
height: unset;
// 2
h2 {
text-align: center;
font-size: 1.25rem;
}
// 3
.brand {
color: inherit;
}
}