Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme committed Apr 18, 2024
1 parent 124195c commit bb1c17e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 14 deletions.
46 changes: 33 additions & 13 deletions src/talk/renderer/DesktopHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
<template>
<header id="header" class="header">
<div class="header__inner">
<div v-if="!OS.isMac"
class="header__title-wrapper"
role="button"
tabindex="0"
@click="pushToRoot">
<span class="header__title">Nextcloud Talk</span>
<span class="header__preview-badge">Preview</span>
</div>
<!-- <div v-if="!OS.isMac"-->

Check failure on line 25 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- class="header__title-wrapper"-->

Check failure on line 26 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- role="button"-->

Check failure on line 27 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- tabindex="0"-->

Check failure on line 28 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- @click="pushToRoot">-->

Check failure on line 29 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- <span class="header__title">Nextcloud Talk</span>-->

Check failure on line 30 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- <span class="header__preview-badge">Preview</span>-->

Check failure on line 31 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- </div>-->

Check failure on line 32 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character

<div class="spacer" />

Expand Down Expand Up @@ -86,13 +86,34 @@ export default {
}
</script>

<style>
:root {
--talk-desktop-menu: calc(100vw - (env(titlebar-area-width, 100vw) - 54px));
}

body:has(.app-sidebar[style='display: none;']) .top-bar {
padding-right: var(--talk-desktop-menu) !important;
}

.app-sidebar-header__desc {
padding-right: calc(50px + var(--talk-desktop-menu)) !important;
}

.app-sidebar__close {
right: calc(6px + var(--talk-desktop-menu)) !important;
}
</style>

<style scoped>
.header {
height: 50px;
height: 60px;
box-sizing: border-box;
margin-bottom: -50px;
/*margin-bottom: -50px;*/
color: #FFF;
user-select: none;
position: absolute;
top: 0;
right: calc(100vw - env(titlebar-area-width, 100vw));
z-index: 1000;
}

.header__inner {
Expand All @@ -102,7 +123,6 @@ export default {
height: 100%;
/* Save space for native title bar buttons */
margin-inline-start: env(titlebar-area-x, 0);
width: env(titlebar-area-width, 100%);
}

.header__item {
Expand Down Expand Up @@ -136,6 +156,6 @@ export default {
flex: 1 0 auto;
height: 100%;
/* Allow to drag the window using header */
app-region: drag;
/*app-region: drag;*/
}
</style>
5 changes: 5 additions & 0 deletions src/talk/renderer/assets/overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
:root {
/* It is IMPORTANT to set "px" here, not just "0" */
--body-container-margin: 0px;
--body-height: 100%;
}

#content-vue {
border-radius: 0 !important;
}

.content {
margin-top: 0 !important;
}
2 changes: 1 addition & 1 deletion src/talk/talk.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function createTalkWindow() {
titleBarOverlay: {
color: '#00669E00', // Transparent
symbolColor: '#FFFFFF', // White
height: 50,
height: 60,
},
// Position of the top left corner of the traffic light on Mac
trafficLightPosition: {
Expand Down

0 comments on commit bb1c17e

Please sign in to comment.