Skip to content

Commit

Permalink
resolutions emotion
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Feb 18, 2024
1 parent a46bcce commit 3909802
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/javascript/controllers/conversation_controller.js
Expand Up @@ -36,13 +36,13 @@ export default class extends Controller {

scrollToBottom() {
const overflow = document.getElementById('conversation-overflow');
if(!overflow) return
if (!overflow) return;
overflow.scrollTop = overflow.scrollHeight;
}

toggleSidebar() {
const sidebar = document.getElementById('conversation-sidebar');
if(!sidebar) return
if (!sidebar) return;
//sidebar.classList.toggle('hidden')
sidebar.classList.toggle('sm:block');
}
Expand Down
8 changes: 5 additions & 3 deletions app/javascript/tour_manager.js
Expand Up @@ -34,7 +34,7 @@ class TourManager {
}

pushEvent(data) {
console.log("ABOUT TO PUSH", data)
console.log('ABOUT TO PUSH', data);
switch (data.action) {
case 'disablePreview':
this.disablePreview();
Expand Down Expand Up @@ -138,7 +138,9 @@ class TourManager {

const cssPath = finder(target); // Assuming 'finder' is available in the context
const encodedCssPath = encodeURIComponent(cssPath);
const url = document.querySelector("#tourManagerFrame").src.replace("tour_editor", `tour_step?target=${encodedCssPath}`)
const url = document
.querySelector('#tourManagerFrame')
.src.replace('tour_editor', `tour_step?target=${encodedCssPath}`);
const path = {
target: cssPath,
content: `<div>
Expand Down Expand Up @@ -280,7 +282,7 @@ class TourManager {
editElement: null,
selecting: false,
});
this.createTourGuide()
this.createTourGuide();
}

disablePreview() {
Expand Down

0 comments on commit 3909802

Please sign in to comment.