Skip to content

Commit

Permalink
Moves snowflake
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Dec 19, 2024
1 parent 47d01c6 commit 056a6d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/webviews/apps/home/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import './components/integration-banner';
import './components/preview-banner';
import './components/promo-banner';
import './components/repo-alerts';
import '../shared/components/snow';

@customElement('gl-home-app')
export class GlHomeApp extends GlApp<State> {
Expand Down Expand Up @@ -66,7 +65,6 @@ export class GlHomeApp extends GlApp<State> {

override render() {
return html`
<gl-snow></gl-snow>
<div class="home scrollable">
<gl-home-header class="home__header"></gl-home-header>
${when(!this.state.previewEnabled, () => html`<gl-preview-banner></gl-preview-banner>`)}
Expand Down
9 changes: 8 additions & 1 deletion src/webviews/apps/plus/shared/components/home-header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import '../../../shared/components/button-container';
import '../../../shared/components/code-icon';
import '../../../shared/components/overlays/popover';
import '../../../shared/components/promo';
import '../../../shared/components/snow';

@customElement('gl-home-header')
export class GLHomeHeader extends LitElement {
Expand Down Expand Up @@ -49,6 +50,12 @@ export class GLHomeHeader extends LitElement {
gl-promo-banner:not([has-promo]) {
display: none;
}
.group {
display: flex;
align-items: center;
gap: 0.4rem;
}
`,
];

Expand All @@ -58,7 +65,7 @@ export class GLHomeHeader extends LitElement {
override render() {
return html`<gl-promo-banner></gl-promo-banner>
<div class="container" tabindex="-1">
<gl-account-chip></gl-account-chip>
<span class="group"><gl-account-chip></gl-account-chip> <gl-snow></gl-snow></span>
<gl-integrations-chip></gl-integrations-chip>
</div>
<gl-onboarding></gl-onboarding>`;
Expand Down
4 changes: 0 additions & 4 deletions src/webviews/apps/shared/components/snow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ export class GlSnow extends LitElement {
filter ease-in-out 250ms,
opacity ease-in-out 250ms,
transform ease-in-out 250ms;
position: fixed;
right: 4px;
bottom: 3px;
}
:host(:not([snowing])) .snow__toggle {
Expand Down

0 comments on commit 056a6d0

Please sign in to comment.