From 45d05c4cb59445660081af25a508440f908dd0b2 Mon Sep 17 00:00:00 2001 From: Maximiliano Farfan <72162955+MaxFSP@users.noreply.github.com> Date: Mon, 11 Nov 2024 21:50:18 -0400 Subject: [PATCH] Max/new window page visual bug fix (#115) * Updated to v1.3.0 * add pear version in about * Update CONTRIBUTING.md update packaging guide * Update CONTRIBUTING.md update packaging info * Update CONTRIBUTING.md * Git submodule commit update (#66) * Bumped to v1.4.0 * PearAI Overlay (#67) * PearAI Overlay * Uncomment layout * Remove comment * Prevent overlay open on every startup + background default color * Fix overlay bug * Border radius * Bumped to v1.4.1 * Fix overlay popping up for half a second at startup (#77) * Console logs for debugging trace of overlay startup * Revert "Console logs for debugging trace of overlay startup" This reverts commit 70fa3bc021bcac48bbd4a387f0c1bc60ff9c4d27. * Fix overlay appearing for half a second on startup * Bumped versions (#80) Co-authored-by: nang-dev * Handle overlay integration shortcuts (#84) * feat: new window watermark (#87) * Added darken and click outside overlay. todo for not closing * Added min for the auxbar (#94) Co-authored-by: nang-dev * feat: overlay-lock (#92) * Added remove release notes (#96) Co-authored-by: nang-dev * remove unused vars (#97) * Bumped to v1.4.4 * Default close sidebar for new window (#98) * Bumped to v1.4.5 * highlight cmd i onboarding (#105) * WIP: Walkthrough changes (#236) * Added walkthrough progress * Added progress for walkthrough * Added todo * enable editorInsets for inline chat (#253) * Fix .gitmodules * Update code.sh * update submodule to latest tip (#260) * fix: #262 prioritize pearai commands (#264) * fix: #262 prioritize pearai commands * fix: update priority order and change test case default chord * fix: use keymode.shift * Fixed code version * feat: docs and newchat shortcut on titlebar (#266) * feat: docs and newchat shortcut on titlebar * typo * Update README.md (#276) * Shortcut change to resize chat on the app side (#279) * Shortcut change to resize chat on the app side * Removed test related console log * Updated splitEditor shortcut * update icon and watermark (#278) * watermarks update * add shortcuts to watermark * titlebar icon change * fix walkthrough * Added product (#285) Co-authored-by: Nathan A * set quality:stable (#267) * update MacOS example in CONTRIBUTING.md file: Packaging step 3 - integrate the submodule (#228) * update MacOS example in CONTRIBUTING.md file: Packaging step 3 - integrate the submodule * fix constants CAP * PearAI main app welcome page gif fixed (#286) * Update media paths for welcome page GIFs and GIF themselves. * upload two gifs first * upload one gif first * push again * Fixed walk through (#288) * Added imports for gif * Added png * Added typo fix * Added png --------- Co-authored-by: Nathan A * Added to readme (#295) Co-authored-by: Nathan A * add hacker theme to pearai (#300) * Update README.md * Set default theme to PearAI Dark/Light (#322) * Set default theme to PearAI Dark/Light * Undo not needed solarized file changes * Added auto-updating working client-side (#340) * Added updating working * Removed configs --------- Co-authored-by: Nathan A Co-authored-by: Nathan A * Updated wording (#341) * Added updating working * Removed configs * Added pearAI online services * Added pearAI online services --------- Co-authored-by: Nathan A Co-authored-by: Nathan A * Setup Environment with Space in Path (#335) * Added v1.1.0 (#344) Co-authored-by: Nathan A * Bumped to v1.2.0 * Update README.md * patch-wsl (add vscode commit) (#348) * Update README.md * If you are looking for commit history, read this please * Updated to v1.3.0 * add pear version in about * Update CONTRIBUTING.md update packaging guide * Update CONTRIBUTING.md update packaging info * Update CONTRIBUTING.md * Git submodule commit update (#66) * Bumped to v1.4.0 * PearAI Overlay (#67) * PearAI Overlay * Uncomment layout * Remove comment * Prevent overlay open on every startup + background default color * Fix overlay bug * Border radius * Bumped to v1.4.1 * Fix overlay popping up for half a second at startup (#77) * Console logs for debugging trace of overlay startup * Revert "Console logs for debugging trace of overlay startup" This reverts commit 70fa3bc021bcac48bbd4a387f0c1bc60ff9c4d27. * Fix overlay appearing for half a second on startup * Bumped versions (#80) Co-authored-by: nang-dev * Handle overlay integration shortcuts (#84) * feat: new window watermark (#87) * Added darken and click outside overlay. todo for not closing * Added min for the auxbar (#94) Co-authored-by: nang-dev * feat: overlay-lock (#92) * Added remove release notes (#96) Co-authored-by: nang-dev * remove unused vars (#97) * Bumped to v1.4.4 * Default close sidebar for new window (#98) * Add highlight of quickinput during cmd+i step * clean up * package.json * remove transition --------- Co-authored-by: Nang Co-authored-by: Himanshu Co-authored-by: Duke Pan <59063950+Fryingpannn@users.noreply.github.com> Co-authored-by: Maximiliano Farfan <72162955+MaxFSP@users.noreply.github.com> Co-authored-by: Nathan A Co-authored-by: Brian Co-authored-by: Andrew Hopkins Co-authored-by: Nathan A Co-authored-by: Ashvin Nihalani Co-authored-by: nang-dev * Overlay structuring to happen in submodule (#102) * Updated visuals on the new window page (#106) * Updated visuals on the new window page * Fixed css indentation * Visual fix on new window page --------- Co-authored-by: nang-dev Co-authored-by: himanshu Co-authored-by: John Pan Co-authored-by: Duke Pan <59063950+Fryingpannn@users.noreply.github.com> Co-authored-by: Nang Co-authored-by: Nathan A Co-authored-by: Brian Co-authored-by: Andrew Hopkins Co-authored-by: Nathan A Co-authored-by: Ashvin Nihalani --- .../parts/editor/media/editorgroupview.css | 56 ++++++++++++------- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/src/vs/workbench/browser/parts/editor/media/editorgroupview.css b/src/vs/workbench/browser/parts/editor/media/editorgroupview.css index cb227ea0b951e..3723640affce8 100644 --- a/src/vs/workbench/browser/parts/editor/media/editorgroupview.css +++ b/src/vs/workbench/browser/parts/editor/media/editorgroupview.css @@ -39,15 +39,6 @@ justify-content: center; } -.monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark-no-workspace { - display: flex; - height: 100%; - max-width: 700px; - margin: auto; - flex-direction: column; - align-items: center; - justify-content: center; -} .monaco-workbench .part.editor > .content .editor-group-container:not(.empty) > .editor-group-watermark-workspace { display: none; @@ -70,12 +61,6 @@ transform: translate(-50%, -50%); } -.monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark-no-workspace .button-container { - width: 100%; - display: flex; - justify-content: center; - margin-bottom: 30px; -} /* Parent Container Styles */ .monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark-no-workspace { @@ -85,6 +70,9 @@ padding: 20px; box-sizing: border-box; width: 100%; + height: 100%; + margin: auto; + justify-content: center; } /* Button Container Styles */ @@ -132,7 +120,8 @@ /* Recent Item Styles */ .monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark-no-workspace .recent-item { - display: inline-block; + display: flex; + align-items: center; max-width: 100%; white-space: nowrap; overflow: hidden; @@ -142,19 +131,21 @@ opacity: 0.8; font-size: 14px; color: var(--vscode-foreground); - vertical-align: middle; } /* File Name Styles */ .monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark-no-workspace .recent-item .name { - font-weight: normal; - color: var(--vscode-foreground); + font-weight: normal; + color: var(--vscode-foreground); } /* Path Styles */ .monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark-no-workspace .recent-item .path { - opacity: 0.6; - color: var(--vscode-editorWatermark-foreground); + opacity: 0.6; + color: var(--vscode-editorWatermark-foreground); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } /* Add Space Between Name and Path */ @@ -214,6 +205,29 @@ opacity: 1; } +@media (max-width: 720px) { + + .monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark-no-workspace .recent-item { + display: inline-block; + max-width: 100%; + white-space: normal; + overflow: hidden; + text-overflow: ellipsis; + padding: 6px 0; + cursor: pointer; + opacity: 0.8; + font-size: 14px; + color: var(--vscode-foreground); + vertical-align: middle; + } + .monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark-no-workspace .recent-item .path { + opacity: 0.6; + color: var(--vscode-editorWatermark-foreground); + white-space: normal; + overflow: hidden; + text-overflow: ellipsis; + } +} .monaco-workbench .part.editor > .content .editor-group-container > .editor-group-watermark-workspace > .letterpress { width: 100%; max-height: 100%;