Path: blob/main/src/vs/sessions/contrib/changes/browser/media/changesView.css
13406 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45.changes-view-body {6display: flex;7flex-direction: column;8height: 100%;9padding: 4px 8px;10box-sizing: border-box;11}1213/* SplitView container */14.changes-view-body .changes-splitview-container {15flex: 1;16min-height: 0;17overflow: hidden;18}1920/* Progress bar */21.changes-view-body .chat-editing-session-container .changes-progress {22position: relative;23}2425/* Welcome/Empty state */26.changes-view-body .changes-welcome {27display: flex;28flex-direction: column;29align-items: center;30justify-content: center;31flex: 1;32padding: 32px;33text-align: center;34gap: 8px;35}3637.changes-view-body .changes-welcome-icon.codicon {38font-size: 32px !important;39color: var(--vscode-descriptionForeground);40opacity: 0.4;41}4243.changes-view-body .changes-welcome-message {44color: var(--vscode-descriptionForeground);45font-size: 12px;46}4748/* Main container */49.changes-view-body .chat-editing-session-container {50box-sizing: border-box;51display: flex;52flex-direction: column;53gap: 2px;54overflow: hidden;55}5657/* Files header */58.changes-view-body .changes-files-header {59display: flex;60align-items: center;61gap: 6px;62padding: 2px 0;63min-height: 22px;64font-weight: 500;65font-size: 12px;66}6768.changes-view-body .changes-files-header-toolbar {69flex: 1;70min-width: 0;71}7273.changes-view-body .changes-files-header-toolbar .action-label {74font-size: 12px;75align-items: center;7677> span {78margin-left: 2px;79}8081> .codicon {82font-size: 10px !important;83padding-left: 4px;84width: 10px;85height: 10px;86}87}8889.changes-view-body .changes-files-header-right-toolbar {90flex-shrink: 0;91display: flex;92align-items: center;93}9495.changes-view-body .changes-files-header-right-toolbar .changes-diff-stats-action .action-label {96display: inline-flex;97align-items: center;98gap: 4px;99font-size: 12px;100font-weight: 500;101padding: 2px 4px;102}103104/* Overview section (header) - hidden since actions moved outside card */105.changes-view-body .chat-editing-session-overview {106display: none;107}108109/* Summary container */110.changes-view-body .changes-summary {111display: flex;112flex-direction: row;113align-items: center;114gap: 6px;115padding: 0 6px;116color: var(--vscode-descriptionForeground);117font-size: 12px;118white-space: nowrap;119overflow: hidden;120text-overflow: ellipsis;121}122123/* Line counts in header */124.changes-view-body .changes-summary .working-set-lines-added {125color: var(--vscode-chat-linesAddedForeground);126font-size: 11px;127font-weight: 500;128}129130.changes-view-body .changes-summary .working-set-lines-removed {131color: var(--vscode-chat-linesRemovedForeground);132font-size: 11px;133font-weight: 500;134}135136.changes-view-body .changes-files-header-right-toolbar .working-set-lines-added {137color: var(--vscode-chat-linesAddedForeground);138}139140.changes-view-body .changes-files-header-right-toolbar .working-set-lines-removed {141color: var(--vscode-chat-linesRemovedForeground);142}143144/* Actions container */145.changes-view-body .chat-editing-session-actions {146display: flex;147flex-direction: row;148flex-wrap: nowrap;149gap: 4px;150align-items: center;151}152153/* Actions container outside the card - new layout experiment */154.changes-view-body .chat-editing-session-actions.outside-card {155margin-bottom: 8px;156justify-content: flex-end;157}158159/* Larger action buttons matching SCM ActionButton style */160.changes-view-body .chat-editing-session-actions.outside-card .monaco-button {161height: 26px;162padding: 4px;163font-size: 12px;164line-height: 18px;165}166167/* Primary button grows to fill available space */168.changes-view-body .chat-editing-session-actions.outside-card .monaco-button:not(.secondary) {169flex: 1;170min-width: 0;171}172173.changes-view-body .chat-editing-session-actions.outside-card .monaco-button:not(.secondary) > span:not(.codicon) {174overflow: hidden;175text-overflow: ellipsis;176white-space: nowrap;177}178179/* ButtonWithDropdown container grows to fill available space */180.changes-view-body .chat-editing-session-actions.outside-card .monaco-button-dropdown {181flex: 1;182min-width: 0;183display: flex;184}185186.changes-view-body .chat-editing-session-actions.outside-card .monaco-button-dropdown > .monaco-button {187flex: 1;188min-width: 0;189box-sizing: border-box;190}191192.changes-view-body .chat-editing-session-actions.outside-card .monaco-button-dropdown > .monaco-button > span:not(.codicon) {193overflow: hidden;194text-overflow: ellipsis;195white-space: nowrap;196}197198.changes-view-body .chat-editing-session-actions.outside-card .monaco-button-dropdown > .monaco-button-dropdown-separator {199flex: 0;200}201202.changes-view-body .chat-editing-session-actions.outside-card .monaco-button-dropdown > .monaco-button.monaco-dropdown-button {203flex: 0 0 auto;204padding: 4px;205width: auto;206min-width: 0;207border-radius: 0px 4px 4px 0px;208}209210.changes-view-body .chat-editing-session-actions.outside-card .monaco-button.secondary.monaco-text-button.codicon {211padding: 4px 6px;212font-size: 16px !important;213}214215.changes-view-body .chat-editing-session-actions .monaco-button {216width: fit-content;217overflow: hidden;218text-wrap: nowrap;219}220221.changes-view-body .chat-editing-session-actions .monaco-button.secondary.monaco-text-button.codicon {222cursor: pointer;223padding: 2px;224border-radius: 4px;225display: inline-flex;226}227228.changes-view-body .chat-editing-session-actions .monaco-button.secondary.monaco-text-button {229background-color: var(--vscode-button-secondaryBackground);230color: var(--vscode-button-secondaryForeground);231}232233.changes-view-body .chat-editing-session-actions.outside-card .monaco-button-dropdown > .monaco-button.secondary.monaco-text-button {234border-radius: 4px 0px 0px 4px;235}236237.changes-view-body .chat-editing-session-actions .monaco-button.secondary:hover {238background-color: var(--vscode-button-secondaryHoverBackground);239color: var(--vscode-button-secondaryForeground);240}241242/* List container */243.changes-file-list {244overflow: hidden;245}246247/* Make the vertical scrollbar overlay on top of content instead of shifting it */248.changes-file-list .monaco-scrollable-element > .scrollbar.vertical {249z-index: 1;250}251252.changes-file-list .monaco-scrollable-element > .monaco-list-rows {253width: 100% !important;254}255256/* Remove tree indentation padding for hidden twisties (both list and tree mode) */257.changes-file-list .monaco-tl-twistie.force-no-twistie {258padding-left: 0 !important;259}260261/* Modal sidebar "Changes" header */262.changes-file-list .changes-sidebar-header {263display: flex;264align-items: center;265justify-content: space-between;266gap: 6px;267padding: 2px 0;268min-height: 22px;269font-weight: 500;270font-size: 12px;271}272273/* List rows */274.changes-view-body .chat-editing-session-container:not(.has-file-icons) .monaco-list-row .monaco-icon-label {275margin-left: 6px;276}277278.changes-view-body .chat-editing-session-container.show-file-icons .monaco-scrollable-element .monaco-list-rows .monaco-list-row {279border-radius: 4px;280}281282/* Action bar in list rows */283.changes-file-list .monaco-list-row .chat-collapsible-list-action-bar {284padding-left: 5px;285display: none;286}287288.changes-file-list .monaco-list-row:hover .chat-collapsible-list-action-bar:not(.has-no-actions),289.changes-file-list .monaco-list-row.focused .chat-collapsible-list-action-bar:not(.has-no-actions),290.changes-file-list .monaco-list-row.selected .chat-collapsible-list-action-bar:not(.has-no-actions) {291display: inherit;292}293294/* Hide diff stats on hover/focus/select when toolbar has actions */295.changes-file-list .monaco-list-row:hover .monaco-icon-label:has(.chat-collapsible-list-action-bar:not(.has-no-actions)) .working-set-line-counts,296.changes-file-list .monaco-list-row.focused .monaco-icon-label:has(.chat-collapsible-list-action-bar:not(.has-no-actions)) .working-set-line-counts,297.changes-file-list .monaco-list-row.selected .monaco-icon-label:has(.chat-collapsible-list-action-bar:not(.has-no-actions)) .working-set-line-counts {298display: none;299}300301/* Decoration badges (A/M/D) */302.changes-file-list .changes-decoration-badge {303display: inline-flex;304align-items: center;305justify-content: center;306width: 16px;307min-width: 16px;308font-size: 11px;309font-weight: 600;310margin-right: 2px;311opacity: 0.9;312}313314.changes-file-list .changes-decoration-badge.added {315color: var(--vscode-gitDecoration-addedResourceForeground);316}317318.changes-file-list .changes-decoration-badge.modified {319color: var(--vscode-gitDecoration-modifiedResourceForeground);320}321322.changes-file-list .changes-decoration-badge.deleted {323color: var(--vscode-gitDecoration-deletedResourceForeground);324}325326/* Line counts in list items */327.changes-file-list .working-set-line-counts {328margin: 0 6px;329display: inline-flex;330align-items: center;331gap: 4px;332font-size: 11px;333}334335.changes-file-list .changes-review-comments-badge {336display: inline-flex;337align-items: center;338gap: 4px;339font-size: 11px;340margin-right: 6px;341color: var(--vscode-descriptionForeground);342}343344.changes-file-list .changes-review-comments-badge .codicon {345font-size: 12px;346}347348.changes-file-list .changes-agent-feedback-badge {349display: inline-flex;350align-items: center;351vertical-align: middle;352gap: 4px;353font-size: 11px;354color: var(--vscode-descriptionForeground);355}356357.changes-file-list .changes-agent-feedback-badge .codicon {358font-size: 12px;359}360361.changes-file-list .working-set-lines-added {362color: var(--vscode-chat-linesAddedForeground);363}364365.changes-file-list .working-set-lines-removed {366color: var(--vscode-chat-linesRemovedForeground);367}368369/* Line counts in buttons */370.changes-view-body .chat-editing-session-actions .monaco-button.working-set-diff-stats {371flex-shrink: 0;372padding-left: 4px;373padding-right: 8px;374}375376.changes-view-body .chat-editing-session-actions .monaco-button .working-set-lines-added {377color: var(--vscode-chat-linesAddedForeground);378}379380.changes-view-body .chat-editing-session-actions .monaco-button .working-set-lines-removed {381color: var(--vscode-chat-linesRemovedForeground);382}383384.changes-view-body .chat-editing-session-actions .monaco-button.code-review-comments,385.changes-view-body .chat-editing-session-actions .monaco-button.code-review-loading {386padding-left: 4px;387padding-right: 4px;388}389390391