Eric Amodio 2 yıl önce
ebeveyn
işleme
96b163c095
5 değiştirilmiş dosya ile 46 ekleme ve 31 silme
  1. +26
    -13
      src/webviews/apps/commitDetails/commitDetails.html
  2. +0
    -2
      src/webviews/apps/commitDetails/commitDetails.scss
  3. +4
    -4
      src/webviews/apps/home/home.scss
  4. +9
    -7
      src/webviews/apps/plus/graph/graph.scss
  5. +7
    -5
      src/webviews/commitDetails/commitDetailsWebviewView.ts

+ 26
- 13
src/webviews/apps/commitDetails/commitDetails.html Dosyayı Görüntüle

@ -7,14 +7,17 @@
<body class="preload">
<div class="commit-detail-panel">
<div class="commit-detail-panel__none" id="empty" aria-hidden="true">
<p>
Rich details for commits and stashes are shown as you navigate:
<ul class="bulleted">
<li>lines in the text editor</li>
<li>commits in the <a href="command:gitlens.showGraphPage">Commit Graph</a>, <a href="command:gitlens.showTimelineView">Visual File History</a>, or <a href="command:gitlens.showCommitsView">Commits view</a></li>
<li>stashes in the <a href="command:gitlens.showStashesView">Stashes view</a></li>
</ul>
</p>
<p>Rich details for commits and stashes are shown as you navigate:</p>
<ul class="bulleted">
<li>lines in the text editor</li>
<li>
commits in the <a href="command:gitlens.showGraphPage">Commit Graph</a>,
<a href="command:gitlens.showTimelineView">Visual File History</a>, or
<a href="command:gitlens.showCommitsView">Commits view</a>
</li>
<li>stashes in the <a href="command:gitlens.showStashesView">Stashes view</a></li>
</ul>
<p>Alternatively, search for or choose a commit</p>
@ -23,7 +26,13 @@
<button class="button button--full" type="button" data-action="pick-commit">
Choose Commit...
</button>
<button class="button" type="button" data-action="search-commit" aria-label="Search for Commit" title="Search for Commit">
<button
class="button"
type="button"
data-action="search-commit"
aria-label="Search for Commit"
title="Search for Commit"
>
<code-icon icon="search"></code-icon>
</button>
</span>
@ -116,10 +125,14 @@
<span slot="title">Files changed </span>
<span slot="subtitle" data-region="stats"></span>
<div style="text-align: center;">
<div style="text-align: center">
<div class="switch">
<button type="button" class="switch__option" data-switch-value="list"><code-icon icon="list-flat"></code-icon> Path</button>
<button type="button" class="switch__option" data-switch-value="list-tree"><code-icon icon="list-tree"></code-icon> Tree</button>
<button type="button" class="switch__option" data-switch-value="list">
<code-icon icon="list-flat"></code-icon> Path
</button>
<button type="button" class="switch__option" data-switch-value="list-tree">
<code-icon icon="list-tree"></code-icon> Tree
</button>
</div>
</div>
<ul class="change-list" data-region="files">
@ -148,7 +161,7 @@
@font-face {
font-family: 'glicons';
font-display: block;
src: url(4;#{root}/dist/glicons.woff2?2e51fe40df2abdf6a27fbae6c29587b1") format("woff2";);
src: url(9;#{root}/dist/glicons.woff2?2e51fe40df2abdf6a27fbae6c29587b1') format('woff2';);
}
</style>
</body>

+ 0
- 2
src/webviews/apps/commitDetails/commitDetails.scss Dosyayı Görüntüle

@ -382,5 +382,3 @@ ul {
@import '../shared/codicons';
@import '../shared/glicons';

+ 4
- 4
src/webviews/apps/home/home.scss Dosyayı Görüntüle

@ -31,10 +31,10 @@ body {
}
.notice {
font-size: 1.1rem;
border-bottom: 1px solid var(--divider-background);
padding-bottom: 1rem;
text-align: center;
font-size: 1.1rem;
border-bottom: 1px solid var(--divider-background);
padding-bottom: 1rem;
text-align: center;
}
section {

+ 9
- 7
src/webviews/apps/plus/graph/graph.scss Dosyayı Görüntüle

@ -49,7 +49,8 @@ a {
}
}
&__details {}
&__details {
}
&__loading {
font-size: 1.2rem;
@ -167,7 +168,7 @@ a {
&__icon {
&,
&[class*=codicon-] {
&[class*='codicon-'] {
font-size: 2rem;
}
}
@ -446,19 +447,20 @@ a {
z-index: 1000;
&:before {
content: "";;
content: '';;
pointer-events: none;
position: absolute;
width: 100%;
height: 100vh;
transition: background-color .1s ease-out;
transition: background-color 0.1s ease-out;
background: transparent;
width: var(--sash-hover-size);
left: calc(50% - var(--sash-hover-size)/2);
left: calc(50% - var(--sash-hover-size) / 2);
}
&:hover, &:active {
&:hover,
&:active {
&:before {
transition-delay: 0.2s;
background-color: var(--vscode-sash-hoverBorder);
@ -466,7 +468,7 @@ a {
}
&:active:after {
content: "";;
content: '';;
position: absolute;
top: 0;
left: -100vw;

+ 7
- 5
src/webviews/commitDetails/commitDetailsWebviewView.ts Dosyayı Görüntüle

@ -431,7 +431,12 @@ export class CommitDetailsWebviewView extends WebviewViewBase
}
private updatePreferences(preferences: SavedPreferences) {
if (this._context.preferences?.autolinksExpanded === preferences.autolinksExpanded && this._context.preferences?.filesAsTree === preferences.filesAsTree) return;
if (
this._context.preferences?.autolinksExpanded === preferences.autolinksExpanded &&
this._context.preferences?.filesAsTree === preferences.filesAsTree
) {
return;
}
const changes: SavedPreferences = {};
if (this._context.preferences?.autolinksExpanded !== preferences.autolinksExpanded) {
@ -443,10 +448,7 @@ export class CommitDetailsWebviewView extends WebviewViewBase
}
if (this._context.preferences?.filesAsTree !== preferences.filesAsTree) {
void this.container.storage.storeWorkspace(
'views:commitDetails:filesAsTree',
preferences.filesAsTree,
);
void this.container.storage.storeWorkspace('views:commitDetails:filesAsTree', preferences.filesAsTree);
changes.filesAsTree = preferences.filesAsTree;
}

Yükleniyor…
İptal
Kaydet