;
+ return renderLoading ? renderLoading() : ;
}
return null;
diff --git a/packages/server/src/ui/components/lhr-viewer-button.css b/packages/server/src/ui/components/lhr-viewer-button.css
index 8f7b5d3b9..17a8c3e60 100644
--- a/packages/server/src/ui/components/lhr-viewer-button.css
+++ b/packages/server/src/ui/components/lhr-viewer-button.css
@@ -19,10 +19,13 @@
.lhr-viewer-button img {
height: 20px;
+ width: 20px;
margin-right: calc(var(--base-spacing) / 2);
}
.lhr-viewer-button {
color: var(--base-text-color);
font-weight: var(--medium-font-weight);
+ overflow: hidden;
+ white-space: nowrap;
}
diff --git a/packages/server/src/ui/components/loading-spinner.css b/packages/server/src/ui/components/loading-spinner.css
new file mode 100644
index 000000000..8e09da7c8
--- /dev/null
+++ b/packages/server/src/ui/components/loading-spinner.css
@@ -0,0 +1,20 @@
+/**
+ * @license Copyright 2019 Google Inc. All Rights Reserved.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+ */
+
+.loading-spinner--container {
+ width: 100%;
+ min-height: 300px;
+
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+}
+
+.loading-spinner svg {
+ width: 100px;
+ height: 100px;
+}
diff --git a/packages/server/src/ui/components/loading-spinner.jsx b/packages/server/src/ui/components/loading-spinner.jsx
new file mode 100644
index 000000000..3a2b217cf
--- /dev/null
+++ b/packages/server/src/ui/components/loading-spinner.jsx
@@ -0,0 +1,96 @@
+/**
+ * @license Copyright 2019 Google Inc. All Rights Reserved.
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+ */
+
+import {h, Fragment} from 'preact';
+import clsx from 'clsx';
+import './loading-spinner.css';
+
+const LoadingSpinner_ = () => {
+ return (
+
+ );
+};
+
+/** @param {{solo?: boolean}} props */
+export const LoadingSpinner = props => {
+ return (
+