Popover layout fix
This commit is contained in:
@@ -74,14 +74,12 @@ import {KeyActionSaver} from './key-action-saver';
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" [ngSwitch]="activeListItemIndex">
|
||||
<div class="popover-content">
|
||||
<keypress-tab #tab *ngSwitchWhen="0"></keypress-tab>
|
||||
<layer-tab #tab *ngSwitchWhen="1"></layer-tab>
|
||||
<mouse-tab #tab *ngSwitchWhen="2"></mouse-tab>
|
||||
<macro-tab #tab *ngSwitchWhen="3"></macro-tab>
|
||||
<keymap-tab #tab *ngSwitchWhen="4"></keymap-tab>
|
||||
<none-tab #tab *ngSwitchWhen="5"></none-tab>
|
||||
</div>
|
||||
<keypress-tab #tab *ngSwitchWhen="0" class="popover-content"></keypress-tab>
|
||||
<layer-tab #tab *ngSwitchWhen="1" class="popover-content"></layer-tab>
|
||||
<mouse-tab #tab *ngSwitchWhen="2" class="popover-content"></mouse-tab>
|
||||
<macro-tab #tab *ngSwitchWhen="3" class="popover-content"></macro-tab>
|
||||
<keymap-tab #tab *ngSwitchWhen="4" class="popover-content"></keymap-tab>
|
||||
<none-tab #tab *ngSwitchWhen="5" class="popover-content"></none-tab>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="popover-action">
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
:host {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 2px;
|
||||
|
||||
> div {
|
||||
|
||||
4
src/components/popover/tab/keypress-tab.component.scss
Normal file
4
src/components/popover/tab/keypress-tab.component.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
:host {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -45,6 +45,7 @@ import { KeyActionSaver } from '../key-action-saver';
|
||||
</i>
|
||||
</div>
|
||||
`,
|
||||
styles: [require('./keypress-tab.component.scss')],
|
||||
directives: [CaptureKeystrokeButtonComponent]
|
||||
})
|
||||
export class KeypressTabComponent implements OnInit, KeyActionSaver {
|
||||
|
||||
7
src/components/popover/tab/layer-tab.component.scss
Normal file
7
src/components/popover/tab/layer-tab.component.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
:host {
|
||||
display: flex;
|
||||
|
||||
span {
|
||||
margin: 0 5px;
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,8 @@ import { KeyActionSaver } from '../key-action-saver';
|
||||
<span>
|
||||
layer by holding this key.
|
||||
</span>
|
||||
`
|
||||
`,
|
||||
styles: [require('./layer-tab.component.scss')]
|
||||
})
|
||||
export class LayerTabComponent implements OnInit, KeyActionSaver {
|
||||
private toggle: boolean;
|
||||
|
||||
Reference in New Issue
Block a user