Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/shared/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,17 @@ kbd {
kbd + kbd {
margin-inline-start: calc(1 * var(--default-grid-baseline));
}

/* @nextcloud/viewer uses 8px constant instead of var(--body-container-margin) */
/* TODO: remove if https://github.com/nextcloud-libraries/nextcloud-viewer/pull/181 is merged and released */
.viewer__modal[role="dialog"] div.modal-container {
top: calc(var(--header-height) + var(--body-container-margin)) !important;
}

/* Prevent full-size modal from overriding custom title bar (Window Controls Overlay) */
/* TODO: should it be fixed in upstream NcModal to support PWA? */
.modal-mask:has(>.modal-wrapper--full) {
top: env(titlebar-area-height, 0px) !important;
bottom: 0;
height: auto;
}
14 changes: 11 additions & 3 deletions src/shared/setupWebPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,19 @@ function applyInitialState() {
}

/**
* Set CSS variable for --header-height
* Override --header-height according to the title-bar height on every theme
*/
function applyHeaderHeight() {
document.body.style.setProperty('--header-height', `${TITLE_BAR_HEIGHT}px`)
document.documentElement.style.setProperty('--header-height', `${TITLE_BAR_HEIGHT}px`)
const style = document.createElement('style')
style.textContent = `:root,
[data-theme-default],
[data-theme-light],
[data-theme-dark],
[data-theme-dark-highcontrast],
[data-theme-light-highcontrast] {
--header-height: ${TITLE_BAR_HEIGHT}px !important;
}`
document.head.appendChild(style)
}

/**
Expand Down
3 changes: 0 additions & 3 deletions src/talk/renderer/TalkDesktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ import AppWindow from '../../shared/components/AppWindow.vue'
import TalkWrapper from './TalkWrapper/TalkWrapper.vue'
import TitleBar from './TitleBar/TitleBar.vue'
import { useNotificationsStore } from './notifications/notifications.store.js'
import { createViewer } from './Viewer/Viewer.js'

const isTalkInitialized = ref(false)
provide('talk:isInitialized', isTalkInitialized)

useNotificationsStore()

window.OCA.Viewer = createViewer()
</script>

<template>
Expand Down
113 changes: 0 additions & 113 deletions src/talk/renderer/Viewer/Viewer.js

This file was deleted.

172 changes: 0 additions & 172 deletions src/talk/renderer/Viewer/ViewerApp.vue

This file was deleted.

Loading
Loading