Browse Source

fix: child dropdown width and ellipsis width

pull/1639/head
TheDiaval 7 years ago
parent
commit
602d24bbda
  1. 4
      npm/ng-packs/packages/core/src/lib/directives/ellipsis.directive.ts
  2. 2
      npm/ng-packs/packages/theme-basic/src/lib/components/application-layout/application-layout.component.html
  3. 2
      npm/ng-packs/packages/theme-basic/src/lib/components/layout/layout.component.ts
  4. 2
      npm/ng-packs/packages/theme-shared/src/lib/contants/styles.ts

4
npm/ng-packs/packages/core/src/lib/directives/ellipsis.directive.ts

@ -5,7 +5,7 @@ import { AfterContentInit, ChangeDetectorRef, Directive, ElementRef, HostBinding
}) })
export class EllipsisDirective implements AfterContentInit { export class EllipsisDirective implements AfterContentInit {
@Input('abpEllipsis') @Input('abpEllipsis')
witdh: string; width: string;
@HostBinding('title') @HostBinding('title')
@Input() @Input()
@ -21,7 +21,7 @@ export class EllipsisDirective implements AfterContentInit {
@HostBinding('style.max-width') @HostBinding('style.max-width')
get maxWidth() { get maxWidth() {
return this.enabled ? this.witdh || '160px' : undefined; return this.enabled ? this.width || '170px' : undefined;
} }
constructor(private cdRef: ChangeDetectorRef, private elRef: ElementRef) {} constructor(private cdRef: ChangeDetectorRef, private elRef: ElementRef) {}

2
npm/ng-packs/packages/theme-basic/src/lib/components/application-layout/application-layout.component.html

@ -64,7 +64,7 @@
> >
<div ngbDropdownToggle [class.dropdown-toggle]="false" class="pointer"> <div ngbDropdownToggle [class.dropdown-toggle]="false" class="pointer">
<a <a
abpEllipsis="200px" abpEllipsis="210px"
[abpEllipsisEnabled]="isDropdownChildDynamic" [abpEllipsisEnabled]="isDropdownChildDynamic"
role="button" role="button"
class="btn d-block text-left py-2 px-2 dropdown-toggle" class="btn d-block text-left py-2 px-2 dropdown-toggle"

2
npm/ng-packs/packages/theme-basic/src/lib/components/layout/layout.component.ts

@ -9,7 +9,7 @@ import { Store } from '@ngxs/store';
animations: [slideFromBottom], animations: [slideFromBottom],
}) })
export class LayoutComponent { export class LayoutComponent {
isCollapsed: boolean = false; isCollapsed: boolean = true;
get appInfo(): Config.Application { get appInfo(): Config.Application {
return this.store.selectSnapshot(ConfigState.getApplicationInfo); return this.store.selectSnapshot(ConfigState.getApplicationInfo);

2
npm/ng-packs/packages/theme-shared/src/lib/contants/styles.ts

@ -25,7 +25,7 @@ export default `
} }
.navbar .dropdown-menu { .navbar .dropdown-menu {
min-width: 200px; min-width: 215px;
} }
.modal { .modal {

Loading…
Cancel
Save