Add right padding to titlebar instead of margins on elements

This fixes a visual glitch causing the avatar to be shown too close to
the right edge of the window when the share icon was not present.
This commit is contained in:
Antonio Scandurra
2022-05-02 09:27:37 +02:00
parent 5b68534427
commit 5d0c3c43e8
15 changed files with 380 additions and 400 deletions
+2 -3
View File
@@ -65,6 +65,7 @@ export default function workspace(theme: Theme) {
background: backgroundColor(theme, 100),
padding: {
left: 80,
right: 6,
},
title: text(theme, "sans", "primary"),
avatar: {
@@ -86,7 +87,6 @@ export default function workspace(theme: Theme) {
cornerRadius: 6,
margin: {
top: 1,
right: 6,
},
padding: {
left: 6,
@@ -104,7 +104,7 @@ export default function workspace(theme: Theme) {
},
shareIcon: {
cornerRadius: 6,
margin: { top: 3, bottom: 2 },
margin: { top: 3, bottom: 2, left: 6 },
color: iconColor(theme, "secondary"),
hover: {
background: backgroundColor(theme, 100, "hovered"),
@@ -128,7 +128,6 @@ export default function workspace(theme: Theme) {
right: 6,
},
cornerRadius: 6,
margin: { right: 6 }
},
},
toolbar: {