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
+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;
}