Skip to content

Commit

Permalink
fix: repair nx cloud footer styling
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Dec 27, 2022
1 parent ee12bfb commit 864468f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,12 @@ export class NxCloudWebviewProvider implements WebviewViewProvider {
<style>
html {
height: 100%;
min-height: 100%;
}
body {
height: 100vh;
}
root-element {
height: 100%;
}
</style>
Expand Down
3 changes: 0 additions & 3 deletions libs/vscode/nx-cloud-view/src/webview/components/run-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import type { RunDetails } from '../../lib/nx-cloud-service/models';
@customElement('run-list-element')
export class RunList extends LitElement {
static styles = css`
vscode-panel-view {
min-height: 200px;
}
vscode-progress-ring {
padding-top: 5rem;
margin: auto;
Expand Down
5 changes: 1 addition & 4 deletions libs/vscode/nx-cloud-view/src/webview/components/ui/logo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export class Logo extends LitElement {
:host {
color: var(--vscode-input-placeholderForeground);
font-size: 0.75rem;
padding: 0.5rem;
}
.nx-cloud-icon {
height: 1rem;
Expand All @@ -18,10 +19,6 @@ export class Logo extends LitElement {
stroke: var(--vscode-input-placeholderForeground);
}
.logo {
position: sticky;
bottom: 0;
right: 0;
padding: 0.5rem;
display: flex;
align-items: center;
justify-content: end;
Expand Down
30 changes: 21 additions & 9 deletions libs/vscode/nx-cloud-view/src/webview/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,26 @@ import './all-components';
export class Root extends LitElement {
static styles = css`
.container {
display: flex;
min-height: 100%;
position: relative;
display: inline-flex;
flex-direction: column;
height: 100%;
}
.content {
padding-bottom: 1.5rem;
}
vscode-divider {
margin: 1.5rem 0 1rem 0;
}
steps-element {
height: 100%;
}
logo-element {
position: absolute;
width: 100%;
bottom: 0;
right: 0;
}
`;
@state()
private state: WebviewState | undefined = undefined;
Expand All @@ -42,13 +52,15 @@ export class Root extends LitElement {
<div class="container">
<status-labels-element .state=${this.state}></status-labels-element>
<vscode-divider role="seperator"></vscode-divider>
<claim-callout-element
?isusingcloudrunner=${this.state?.isUsingCloudRunner}
?hasloaded=${this.state?.hasLoadedWorkspaceDetails}
?isclaimed=${this.state?.isCloudWorkspaceClaimed}
?isauthenticated=${this.state?.isAuthenticated}
></claim-callout-element>
<steps-element .state=${this.state}></steps-element>
<div class="content">
<claim-callout-element
?isusingcloudrunner=${this.state?.isUsingCloudRunner}
?hasloaded=${this.state?.hasLoadedWorkspaceDetails}
?isclaimed=${this.state?.isCloudWorkspaceClaimed}
?isauthenticated=${this.state?.isAuthenticated}
></claim-callout-element>
<steps-element .state=${this.state}></steps-element>
</div>
<logo-element></logo-element>
</div>
`;
Expand Down

0 comments on commit 864468f

Please sign in to comment.