feat: add explicit Neovim panel control modes

This commit is contained in:
user
2026-07-17 07:48:07 +02:00
parent 5255839e27
commit 182f01fc5e
2 changed files with 213 additions and 42 deletions
+54 -12
View File
@@ -8,39 +8,59 @@
position: relative;
top: auto;
}
.viewer-chrome.is-nvim-fullscreen {
position: fixed;
z-index: 300;
inset: 0;
.viewer-chrome.is-nvim-fit {
display: flex;
width: 100vw;
width: 100%;
height: 100vh;
height: 100dvh;
max-height: 100dvh;
flex-direction: column;
overflow: hidden;
background: #11171a;
}
.viewer-chrome.is-nvim-fullscreen .topbar {
.viewer-chrome.is-nvim-fit .topbar {
flex: none;
}
.viewer-chrome.is-nvim-fullscreen .nvim-panel {
.viewer-chrome.is-nvim-fit .nvim-panel {
display: flex;
min-height: 0;
flex: 1;
flex-direction: column;
}
.viewer-chrome.is-nvim-fullscreen .nvim-screen-scroll {
.viewer-chrome.is-nvim-fit .nvim-screen-scroll {
min-height: 0;
height: auto !important;
flex: 1;
}
.viewer-chrome.is-nvim-fullscreen .nvim-resize-handle {
.viewer-chrome.is-nvim-fit .nvim-resize-handle {
display: none;
}
.viewer-chrome.is-nvim-fullscreen .nvim-screen-content {
overflow-y: hidden;
.viewer-chrome.is-nvim-fit .nvim-screen-stage {
width: 100%;
height: 100%;
margin: 0;
zoom: 1;
}
.viewer-chrome.is-nvim-fit .nvim-screen-content {
right: 1mm;
overflow: hidden;
scrollbar-width: none;
}
.viewer-chrome.is-nvim-fullscreen .nvim-screen-content::-webkit-scrollbar {
.viewer-chrome.is-nvim-fit .nvim-screen-grid {
display: flex;
width: 100%;
min-height: 0;
height: 100%;
align-items: center;
justify-content: center;
}
.viewer-chrome.is-nvim-fit .nvim-screen {
width: auto !important;
height: auto !important;
max-width: 100%;
max-height: 100%;
}
.viewer-chrome.is-nvim-fit .nvim-screen-content::-webkit-scrollbar {
display: none;
}
.topbar-nvim-section {
@@ -132,6 +152,7 @@
font: 700 10px/1.2 ui-monospace, monospace;
letter-spacing: 0.04em;
white-space: nowrap;
cursor: pointer;
}
.nvim-control-indicator.is-active {
border-color: #3cb3e2;
@@ -151,12 +172,33 @@
font: 700 10px/1.2 ui-monospace, monospace;
letter-spacing: .03em;
white-space: nowrap;
cursor: pointer;
}
.nvim-work-indicator.is-active {
border-color: #cf3d31;
background: #fff0ee;
color: #9f241b;
}
.nvim-work-indicator.is-engaged {
box-shadow: inset 0 0 0 1px #cf3d31;
}
.nvim-height-toggle {
flex: none;
border: 1px solid #75848b;
border-radius: 3px;
background: #f4f6f7;
color: #425159;
padding: 3px 8px;
font: 700 10px/1.2 ui-monospace, monospace;
letter-spacing: .03em;
white-space: nowrap;
cursor: pointer;
}
.nvim-height-toggle.is-active {
border-color: #267697;
background: #eaf6fb;
color: #174d64;
}
.nvim-shortcut-strip {
flex: none;
color: #536168;