Commit ebc15f43 authored by Phil Hughes's avatar Phil Hughes

design improvements

parent 1f808ffe
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
class="ide-commit-list-container" class="ide-commit-list-container"
> >
<header <header
class="multi-file-commit-panel-header" class="multi-file-commit-panel-header d-flex mb-0"
> >
<div <div
class="d-flex align-items-center flex-fill" class="d-flex align-items-center flex-fill"
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
<icon <icon
:name="actionBtnIcon" :name="actionBtnIcon"
:size="16" :size="16"
class="mr-0" class="ml-auto mr-auto"
/> />
</button> </button>
<button <button
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
'disabled-content': !filesLength 'disabled-content': !filesLength
}" }"
type="button" type="button"
class="d-flex ide-staged-action-btn p-0 border-0 align-items-center prepend-left-8" class="d-flex ide-staged-action-btn p-0 border-0 align-items-center"
data-placement="bottom" data-placement="bottom"
data-container="body" data-container="body"
data-boundary="viewport" data-boundary="viewport"
...@@ -153,7 +153,7 @@ export default { ...@@ -153,7 +153,7 @@ export default {
<icon <icon
:size="16" :size="16"
name="remove-all" name="remove-all"
class="mr-0" class="ml-auto mr-auto"
/> />
</button> </button>
</div> </div>
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import { mapActions } from 'vuex'; import { mapActions } from 'vuex';
import tooltip from '~/vue_shared/directives/tooltip'; import tooltip from '~/vue_shared/directives/tooltip';
import Icon from '~/vue_shared/components/icon.vue'; import Icon from '~/vue_shared/components/icon.vue';
import FileIcon from '~/vue_shared/components/file_icon.vue';
import StageButton from './stage_button.vue'; import StageButton from './stage_button.vue';
import UnstageButton from './unstage_button.vue'; import UnstageButton from './unstage_button.vue';
import { viewerTypes } from '../../constants'; import { viewerTypes } from '../../constants';
...@@ -12,6 +13,7 @@ export default { ...@@ -12,6 +13,7 @@ export default {
Icon, Icon,
StageButton, StageButton,
UnstageButton, UnstageButton,
FileIcon,
}, },
directives: { directives: {
tooltip, tooltip,
...@@ -48,7 +50,7 @@ export default { ...@@ -48,7 +50,7 @@ export default {
return `${getCommitIconMap(this.file).icon}${suffix}`; return `${getCommitIconMap(this.file).icon}${suffix}`;
}, },
iconClass() { iconClass() {
return `${getCommitIconMap(this.file).class} append-right-8`; return `${getCommitIconMap(this.file).class} ml-auto mr-auto`;
}, },
fullKey() { fullKey() {
return `${this.keyPrefix}-${this.file.key}`; return `${this.keyPrefix}-${this.file.key}`;
...@@ -105,17 +107,24 @@ export default { ...@@ -105,17 +107,24 @@ export default {
@click="openFileInEditor" @click="openFileInEditor"
> >
<span class="multi-file-commit-list-file-path d-flex align-items-center"> <span class="multi-file-commit-list-file-path d-flex align-items-center">
<icon <file-icon
:name="iconName" :file-name="file.name"
:size="16" class="append-right-8"
:css-classes="iconClass"
/>{{ file.name }} />{{ file.name }}
</span> </span>
<div class="ml-auto d-flex align-items-center">
<div class="d-flex align-items-center ide-commit-list-changed-icon">
<icon
:name="iconName"
:size="16"
:css-classes="iconClass"
/>
</div>
<component
:is="actionComponent"
:path="file.path"
/>
</div>
</div> </div>
<component
:is="actionComponent"
:path="file.path"
class="d-flex position-absolute"
/>
</div> </div>
</template> </template>
...@@ -46,15 +46,16 @@ export default { ...@@ -46,15 +46,16 @@ export default {
:aria-label="__('Stage changes')" :aria-label="__('Stage changes')"
:title="__('Stage changes')" :title="__('Stage changes')"
type="button" type="button"
class="btn btn-blank append-right-8 d-flex align-items-center" class="btn btn-blank d-flex align-items-center"
data-container="body" data-container="body"
data-boundary="viewport" data-boundary="viewport"
data-placement="bottom" data-placement="bottom"
@click="stageChange(path)" @click.stop.prevent="stageChange(path)"
> >
<icon <icon
:size="16" :size="16"
name="mobile-issue-close" name="mobile-issue-close"
class="ml-auto mr-auto"
/> />
</button> </button>
<button <button
...@@ -66,11 +67,12 @@ export default { ...@@ -66,11 +67,12 @@ export default {
data-container="body" data-container="body"
data-boundary="viewport" data-boundary="viewport"
data-placement="bottom" data-placement="bottom"
@click="showDiscardModal" @click.stop.prevent="showDiscardModal"
> >
<icon <icon
:size="16" :size="16"
name="remove" name="remove"
class="ml-auto mr-auto"
/> />
</button> </button>
<gl-modal <gl-modal
......
...@@ -36,11 +36,12 @@ export default { ...@@ -36,11 +36,12 @@ export default {
data-container="body" data-container="body"
data-boundary="viewport" data-boundary="viewport"
data-placement="bottom" data-placement="bottom"
@click="unstageChange(path)" @click.stop.prevent="unstageChange(path)"
> >
<icon <icon
:size="16" :size="16"
name="redo" name="redo"
class="ml-auto mr-auto"
/> />
</button> </button>
</div> </div>
......
...@@ -567,9 +567,7 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding; ...@@ -567,9 +567,7 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding;
} }
.multi-file-commit-panel-header { .multi-file-commit-panel-header {
display: flex; height: 48px;
align-items: center;
margin-bottom: 0;
border-bottom: 1px solid $white-dark; border-bottom: 1px solid $white-dark;
padding: 12px 0; padding: 12px 0;
} }
...@@ -583,8 +581,6 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding; ...@@ -583,8 +581,6 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding;
flex: 1; flex: 1;
overflow: auto; overflow: auto;
padding: $grid-size 0; padding: $grid-size 0;
margin-left: -$grid-size;
margin-right: -$grid-size;
min-height: 60px; min-height: 60px;
&.form-text.text-muted { &.form-text.text-muted {
...@@ -649,6 +645,8 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding; ...@@ -649,6 +645,8 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding;
.multi-file-commit-list-path { .multi-file-commit-list-path {
cursor: pointer; cursor: pointer;
height: 32px;
padding-right: 0;
&.is-active { &.is-active {
background-color: $white-normal; background-color: $white-normal;
...@@ -657,6 +655,10 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding; ...@@ -657,6 +655,10 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding;
&:hover, &:hover,
&:focus { &:focus {
outline: 0; outline: 0;
.multi-file-discard-btn {
display: flex;
}
} }
svg { svg {
...@@ -676,13 +678,16 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding; ...@@ -676,13 +678,16 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding;
} }
.multi-file-discard-btn { .multi-file-discard-btn {
top: 4px; display: none;
right: 8px;
bottom: 4px;
svg { svg {
top: 0; top: 0;
} }
.btn {
width: 32px;
height: 32px;
}
} }
.multi-file-commit-form { .multi-file-commit-form {
...@@ -797,6 +802,10 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding; ...@@ -797,6 +802,10 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding;
} }
.ide-staged-action-btn { .ide-staged-action-btn {
width: 32px;
height: 32px;
color: inherit;
> svg { > svg {
top: 0; top: 0;
} }
...@@ -1443,7 +1452,13 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding; ...@@ -1443,7 +1452,13 @@ $ide-tree-text-start: $ide-activity-bar-width + $ide-tree-padding;
} }
.ide-commit-editor-header { .ide-commit-editor-header {
height: 65px;
padding: 8px 16px; padding: 8px 16px;
background-color: $white-normal; background-color: $theme-gray-50;
box-shadow: inset 0 -1px $white-dark; box-shadow: inset 0 -1px $white-dark;
} }
.ide-commit-list-changed-icon {
width: 32px;
height: 32px;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment