feat: contribute opencode-cell-actions to Cell toolbar settings + styles

This commit is contained in:
tao.chen
2026-07-23 10:40:33 +08:00
parent 0a05424b29
commit fe45c80dd2
2 changed files with 29 additions and 0 deletions
+3
View File
@@ -1,5 +1,8 @@
{
"jupyter.lab.shortcuts": [],
"jupyter.lab.toolbars": {
"Cell": [{ "name": "opencode-cell-actions", "rank": 100 }]
},
"title": "opencode_bridge",
"description": "opencode_bridge settings.",
"type": "object",
+26
View File
@@ -3,3 +3,29 @@
https://jupyterlab.readthedocs.io/en/stable/developer/css.html
*/
/* AI action buttons inside the native Cell toolbar (active cell, top-right). */
.opencode-cell-actions {
display: flex;
align-items: center;
}
.opencode-cell-actions .opencode-btn {
border: none;
background: transparent;
padding: 0 4px;
font-size: var(--jp-ui-font-size1);
line-height: 20px;
cursor: pointer;
white-space: nowrap;
}
.opencode-cell-actions .opencode-btn:disabled {
opacity: 0.4;
cursor: default;
}
.opencode-cell-actions .opencode-btn:hover:enabled {
background: var(--jp-layout-color2);
border-radius: 2px;
}