Skip to content

Commit

Permalink
fix: cleanup styles
Browse files Browse the repository at this point in the history
- remove publicshare.css as redundant
- keep footer in place, adjust width if talk sidebar is open

Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Oct 24, 2024
1 parent d36b4dc commit 2e58fa4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 89 deletions.
75 changes: 0 additions & 75 deletions css/publicshare.css

This file was deleted.

1 change: 0 additions & 1 deletion lib/PublicShare/TemplateLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public function handle(Event $event): void {
}

Util::addStyle(Application::APP_ID, 'icons');
Util::addStyle(Application::APP_ID, 'publicshare');
Util::addScript(Application::APP_ID, 'talk-public-share-sidebar');

$this->publishInitialStateForGuest();
Expand Down
8 changes: 5 additions & 3 deletions src/PublicShareSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -256,16 +256,18 @@ export default {
body .modal-wrapper * {
box-sizing: border-box;
}
#content-vue:has(#talk-sidebar) ~ footer {
width: calc(100% - 2 * var(--body-container-margin) - clamp(300px, 27vw, 500px));
}
</style>

<style lang="scss" scoped>
/* Properties based on the app-sidebar */
#talk-sidebar {
position: relative;
flex-shrink: 0;
width: 27vw;
min-width: 300px;
max-width: 500px;
width: clamp(300px, 27vw, 500px);
background: var(--color-main-background);
border-left: 1px solid var(--color-border);
Expand Down
10 changes: 0 additions & 10 deletions src/mainPublicShareSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,8 @@ Vue.use(Vuex)

const pinia = createPinia()

/**
*
*/
function adjustLayout() {
document.querySelector('#app-content').appendChild(document.querySelector('footer'))
}

adjustLayout()

// An "isOpen" boolean should be passed to the component, but as it is a
// primitive it would not be reactive; it needs to be wrapped in an object and

// that object passed to the component to get reactivity.
const sidebarState = reactive({
isOpen: false,
Expand Down

0 comments on commit 2e58fa4

Please sign in to comment.