@agent-link/server 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app.js +7 -1
- package/web/style.css +114 -0
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -108,7 +108,7 @@ const App = {
|
|
|
108
108
|
const inputRef = ref(null);
|
|
109
109
|
|
|
110
110
|
// Sidebar state
|
|
111
|
-
const sidebarOpen = ref(
|
|
111
|
+
const sidebarOpen = ref(window.innerWidth > 768);
|
|
112
112
|
const historySessions = ref([]);
|
|
113
113
|
const currentClaudeSessionId = ref(null);
|
|
114
114
|
const needsResume = ref(false);
|
|
@@ -660,6 +660,8 @@ const App = {
|
|
|
660
660
|
|
|
661
661
|
function resumeSession(session) {
|
|
662
662
|
if (isProcessing.value) return;
|
|
663
|
+
// Auto-close sidebar on mobile
|
|
664
|
+
if (window.innerWidth <= 768) sidebarOpen.value = false;
|
|
663
665
|
// Clear current conversation
|
|
664
666
|
messages.value = [];
|
|
665
667
|
messageIdCounter = 0;
|
|
@@ -680,6 +682,8 @@ const App = {
|
|
|
680
682
|
|
|
681
683
|
function newConversation() {
|
|
682
684
|
if (isProcessing.value) return;
|
|
685
|
+
// Auto-close sidebar on mobile
|
|
686
|
+
if (window.innerWidth <= 768) sidebarOpen.value = false;
|
|
683
687
|
messages.value = [];
|
|
684
688
|
messageIdCounter = 0;
|
|
685
689
|
streamingMessageId = null;
|
|
@@ -1104,6 +1108,8 @@ const App = {
|
|
|
1104
1108
|
</div>
|
|
1105
1109
|
|
|
1106
1110
|
<div v-else class="main-body">
|
|
1111
|
+
<!-- Sidebar backdrop (mobile) -->
|
|
1112
|
+
<div v-if="sidebarOpen" class="sidebar-backdrop" @click="toggleSidebar"></div>
|
|
1107
1113
|
<!-- Sidebar -->
|
|
1108
1114
|
<aside v-if="sidebarOpen" class="sidebar">
|
|
1109
1115
|
<div class="sidebar-section">
|
package/web/style.css
CHANGED
|
@@ -1705,3 +1705,117 @@ body {
|
|
|
1705
1705
|
align-items: center;
|
|
1706
1706
|
color: var(--text-secondary);
|
|
1707
1707
|
}
|
|
1708
|
+
|
|
1709
|
+
/* ── Sidebar backdrop (mobile overlay) ── */
|
|
1710
|
+
.sidebar-backdrop {
|
|
1711
|
+
display: none;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
/* ══════════════════════════════════════════
|
|
1715
|
+
Mobile responsive — max-width: 768px
|
|
1716
|
+
══════════════════════════════════════════ */
|
|
1717
|
+
@media (max-width: 768px) {
|
|
1718
|
+
/* Sidebar as fixed overlay */
|
|
1719
|
+
.sidebar {
|
|
1720
|
+
position: fixed;
|
|
1721
|
+
top: 0;
|
|
1722
|
+
left: 0;
|
|
1723
|
+
bottom: 0;
|
|
1724
|
+
width: 280px;
|
|
1725
|
+
max-width: 85vw;
|
|
1726
|
+
z-index: 100;
|
|
1727
|
+
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
.sidebar-backdrop {
|
|
1731
|
+
display: block;
|
|
1732
|
+
position: fixed;
|
|
1733
|
+
inset: 0;
|
|
1734
|
+
background: rgba(0, 0, 0, 0.4);
|
|
1735
|
+
z-index: 99;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
/* Top bar */
|
|
1739
|
+
.top-bar {
|
|
1740
|
+
padding: 0 0.75rem;
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
.agent-label {
|
|
1744
|
+
display: none;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
/* Message area */
|
|
1748
|
+
.message-list {
|
|
1749
|
+
padding: 0.75rem 0.75rem 0.5rem;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
.message-list-inner {
|
|
1753
|
+
max-width: 100%;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
/* Input area */
|
|
1757
|
+
.input-area {
|
|
1758
|
+
padding: 0 0.75rem 0.75rem;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
.input-card {
|
|
1762
|
+
max-width: 100%;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
/* Folder picker */
|
|
1766
|
+
.folder-picker-dialog {
|
|
1767
|
+
width: calc(100vw - 2rem);
|
|
1768
|
+
max-width: 440px;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
/* Status card */
|
|
1772
|
+
.status-card {
|
|
1773
|
+
min-width: 0;
|
|
1774
|
+
width: 100%;
|
|
1775
|
+
max-width: 320px;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
/* Tool blocks */
|
|
1779
|
+
.tool-expand {
|
|
1780
|
+
margin-left: 0;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
.tool-output-content pre {
|
|
1784
|
+
font-size: 0.8rem;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
/* AskUserQuestion — larger tap targets */
|
|
1788
|
+
.ask-question-option {
|
|
1789
|
+
min-height: 44px;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
/* Message content overflow */
|
|
1793
|
+
.message-content {
|
|
1794
|
+
overflow-x: auto;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
.message-content pre {
|
|
1798
|
+
max-width: calc(100vw - 3rem);
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
/* ══════════════════════════════════════════
|
|
1803
|
+
Extra-small screens — max-width: 480px
|
|
1804
|
+
══════════════════════════════════════════ */
|
|
1805
|
+
@media (max-width: 480px) {
|
|
1806
|
+
.message-list {
|
|
1807
|
+
padding: 0.5rem 0.5rem 0.5rem;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
.input-area {
|
|
1811
|
+
padding: 0 0.5rem 0.5rem;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
.top-bar {
|
|
1815
|
+
padding: 0 0.5rem;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
.folder-picker-dialog {
|
|
1819
|
+
width: calc(100vw - 1rem);
|
|
1820
|
+
}
|
|
1821
|
+
}
|