diff --git a/components/chat-editor.js b/components/chat-editor.js index 1b6ac0c..5eb9d81 100644 --- a/components/chat-editor.js +++ b/components/chat-editor.js @@ -1,6 +1,7 @@ import { store } from './store.js'; import './message-card.js'; import './icon-arrow.js'; +import { initTooltips } from '../utils/tooltip.js'; import { html } from '../utils/template.js'; class ChatEditor extends HTMLElement { @@ -121,16 +122,16 @@ class ChatEditor extends HTMLElement {
- - - - + + + + diff --git a/styles.css b/styles.css index a2bf216..4edf3cf 100644 --- a/styles.css +++ b/styles.css @@ -110,25 +110,49 @@ html { body { height: calc(var(--vh, 1dvh) * 100); + max-height: calc(var(--vh, 1dvh) * 100); max-width: 100dvw; overflow: hidden; overscroll-behavior: none; - font-family: var(--font-base); color: var(--color-ink); + + display: flex; + flex-direction: column; } .app-container { - width: 100%; - height: 100%; + flex: 1 1 auto; + min-height: 0; display: grid; grid-template-columns: 1fr; } +footer { + display: none; + background: var(--color-header); + /* border-top: 1px solid var(--color-edge); */ + width: 100%; + flex: 0 0 auto; + color: var(--color-ink-subdued); + align-items: center; + justify-content: flex-start; + padding-inline: 4vw; + padding-block: 0.5rem; + + a { + color: var(--color-bubble-self); + } +} + @media (min-width: 900px) { .app-container { grid-template-columns: 1fr 1fr; } + + footer { + display: flex; + } } .pane--editor, .pane--preview { @@ -172,11 +196,8 @@ body { } @media (min-width: 900px) { - body { - padding: 4dvw; - } - .app-container { + padding: 4dvw; gap: 4dvw; } @@ -200,14 +221,12 @@ body { .pane { min-height: 0; - height: 100%; } .pane--editor chat-editor, .pane--preview chat-preview { display: block; min-height: 0; - height: 100%; background: var(--color-page); border-radius: calc(18rem / 14); diff --git a/utils/tooltip.js b/utils/tooltip.js index 6a11848..f10eebd 100644 --- a/utils/tooltip.js +++ b/utils/tooltip.js @@ -59,7 +59,6 @@ const TOOLTIP_CSS_TEXT = /* css */ ` font-size: calc(12rem / 14); line-height: calc(16rem / 14); opacity: 0; - transition: opacity 0.15s ease-in-out; display: flex; flex-direction: column; gap: calc(4rem / 14); @@ -232,7 +231,6 @@ export function initTooltips(root = document, hostElement = null) { if (bubble) { bubble.classList.toggle('has-subtext', Boolean(subtext)); - // Match previous UX: delay before showing, but not before hiding bubble.style.transitionDelay = '0.5s'; }