Skip to content

Commit 198d2cd

Browse files
committed
Tweak ACP mobile code sizing and docs
1 parent f0b1a9c commit 198d2cd

4 files changed

Lines changed: 54 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44

55
![editor](anycode/imgs/screen.png)
66

7+
## Mobile ACP
8+
9+
ACP panel on phone:
10+
11+
<table>
12+
<tr>
13+
<td><img src="anycode/imgs/screen_phone.png" alt="ACP on mobile" width="240" /></td>
14+
<td><img src="anycode/imgs/screen_phone2.PNG" alt="ACP on mobile 2" width="240" /></td>
15+
</tr>
16+
</table>
17+
718

819
## Features
920
- **Ultra-fast custom editor**: Exceptionally fast and highly optimized virtual rendering engine based on tree-sitter parser, delivering superior performance for large codebases.

anycode/components/agent/AcpMessage.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,3 +558,46 @@
558558
font-size: 12px;
559559
line-height: 1.4;
560560
}
561+
562+
@media (max-width: 768px) and (pointer: coarse) {
563+
.acp-code {
564+
padding: 0.35em;
565+
max-height: 26vh;
566+
}
567+
568+
.acp-code .anyeditor {
569+
-webkit-text-size-adjust: none;
570+
text-size-adjust: none;
571+
}
572+
573+
.acp-code .anyeditor .code,
574+
.acp-code .anyeditor .code * {
575+
font-size: 11px !important;
576+
line-height: 17px !important;
577+
}
578+
579+
.acp-code .anyeditor .code div {
580+
line-height: 17px !important;
581+
}
582+
583+
.acp-code-block-fallback {
584+
font-size: 11px;
585+
line-height: 1.35;
586+
padding: 0.5em;
587+
}
588+
589+
.acp-tool-call-command,
590+
.acp-tool-call-args,
591+
.acp-tool-result-content,
592+
.acp-tool-update-content {
593+
font-size: 11px;
594+
}
595+
596+
.acp-message-markdown code {
597+
font-size: 0.86em;
598+
}
599+
600+
.acp-message-markdown pre code {
601+
font-size: 0.86em;
602+
}
603+
}

anycode/imgs/screen_phone.png

393 KB
Loading

anycode/imgs/screen_phone2.PNG

358 KB
Loading

0 commit comments

Comments
 (0)