Skip to content

Commit

Permalink
feat: Center title in custom titlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Nov 7, 2021
1 parent 2b13831 commit 2e7fe2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/components/CustomTitlebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,10 @@
}
}
#window-title {
display: flex;
align-items: center;
justify-content: center;
flex-grow: 1;
overflow: hidden;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-family: inherit;
span {
line-height: 1.5;
}
}
</style>
1 change: 1 addition & 0 deletions src/components/Titlebar/WindowControls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
grid-template-columns: repeat(3, 46px);
height: 100%;
-webkit-app-region: no-drag;
margin-left: auto;
}
.window-button {
grid-row: 1 / span 1;
Expand Down

0 comments on commit 2e7fe2c

Please sign in to comment.