Console
diff --git a/examples/api/src/app.css b/examples/api/src/app.css
index b1ab957c5..f2d03802e 100644
--- a/examples/api/src/app.css
+++ b/examples/api/src/app.css
@@ -1,3 +1,12 @@
+:root {
+ line-height: 1.5;
+}
+
+input,
+select {
+ min-width: 0;
+}
+
*:not(h1, h2, h3, h4, h5, h6) {
margin: 0;
padding: 0;
diff --git a/examples/api/src/components/MenuBuilder.svelte b/examples/api/src/components/MenuBuilder.svelte
index a79524bb8..36314e1e0 100644
--- a/examples/api/src/components/MenuBuilder.svelte
+++ b/examples/api/src/components/MenuBuilder.svelte
@@ -42,7 +42,7 @@
{#each items as item}
-
diff --git a/examples/api/src/views/Welcome.svelte b/examples/api/src/views/Welcome.svelte
index 589a5c861..f1ef2ba5c 100644
--- a/examples/api/src/views/Welcome.svelte
+++ b/examples/api/src/views/Welcome.svelte
@@ -21,7 +21,7 @@
}
-
+
This is a demo of Tauri's API capabilities using the @tauri-apps/api
-
-
App name: {appName}
App version: {version}
- Tauri version: {tauriVersion}
-
-
+ Tauri version:
{tauriVersion}
diff --git a/examples/api/src/views/Window.svelte b/examples/api/src/views/Window.svelte
index 0cbf04fab..1f4867926 100644
--- a/examples/api/src/views/Window.svelte
+++ b/examples/api/src/views/Window.svelte
@@ -1,4 +1,5 @@
-
-
-
-
-
-
- {#if Object.keys(webviewMap).length >= 1}
-
Selected window:
-
- {/if}
- {#if webviewMap[selectedWebview]}
-
-
-
-
+
+
+ {#if Object.keys(webviewMap).length >= 1}
+
+
Selected Window
+
+
+ {/if}
+
+
Create New Window
+
+
+
+
+
+
+ {#if webviewMap[selectedWebview]}
+
+
+
Change Window Icon
+
+
+
+
+
+
+
Set Window Title
+
+
+
+
+
-
-
-
-
+
+
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
Inner Size
+
+
+ Inner Size
+
Width: {innerSize.width}
Height: {innerSize.height}
-
Outer Size
+
+ Outer Size
+
Width: {outerSize.width}
Height: {outerSize.height}
-
+
Inner Logical Size
Width: {innerSize.toLogical(scaleFactor).width.toFixed(3)}
Height: {innerSize.toLogical(scaleFactor).height.toFixed(3)}
-
+
Outer Logical Size
Width: {outerSize.toLogical(scaleFactor).width.toFixed(3)}
Height: {outerSize.toLogical(scaleFactor).height.toFixed(3)}
-
+
Inner Position
x: {innerPosition.x}
y: {innerPosition.y}
-
+
Outer Position
x: {outerPosition.x}
y: {outerPosition.y}
-
+
Inner Logical Position
x: {innerPosition.toLogical(scaleFactor).x.toFixed(3)}
y: {innerPosition.toLogical(scaleFactor).y.toFixed(3)}
-
+
Outer Logical Position
x: {outerPosition.toLogical(scaleFactor).x.toFixed(3)}
y: {outerPosition.toLogical(scaleFactor).y.toFixed(3)}
-
-
Cursor
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
{#if isWindows || isMacOS}
-
-
+
+
+
+ Applied effects: {effects.length ? effects.join(', ') : 'None'}
+
+
+
+
+
+