Skip to content

Commit

Permalink
reverted non needed changes and added dist from plugin so it runs wit…
Browse files Browse the repository at this point in the history
…hout needing to do anything
  • Loading branch information
ronickg committed Dec 17, 2024
1 parent 34fc081 commit d3e24bb
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 36 deletions.
8 changes: 0 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- <meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/> -->
<!-- <meta
name="viewport"
content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, viewport-fit=cover"
/> -->
<meta
name="viewport"
content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no viewport-fit=cover"
Expand Down
4 changes: 2 additions & 2 deletions plugins/tauri-plugin-safe-area-insets/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ yarn.lock
Cargo.lock
node_modules/

dist-js
dist
# dist-js
# dist
2 changes: 1 addition & 1 deletion plugins/tauri-plugin-safe-area-insets/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tauri-plugin-safe-area-insets"
version = "0.1.0"
authors = [ "You" ]
authors = [ "Ronald <[email protected]>" ]
description = ""
edition = "2021"
rust-version = "1.77.2"
Expand Down
9 changes: 9 additions & 0 deletions plugins/tauri-plugin-safe-area-insets/dist-js/index.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

var core = require('@tauri-apps/api/core');

async function getInsets() {
return await core.invoke("plugin:window-insets|get_insets");
}

exports.getInsets = getInsets;
7 changes: 7 additions & 0 deletions plugins/tauri-plugin-safe-area-insets/dist-js/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export interface Insets {
top: number;
bottom: number;
left: number;
right: number;
}
export declare function getInsets(): Promise<Insets>;
7 changes: 7 additions & 0 deletions plugins/tauri-plugin-safe-area-insets/dist-js/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { invoke } from '@tauri-apps/api/core';

async function getInsets() {
return await invoke("plugin:window-insets|get_insets");
}

export { getInsets };
4 changes: 2 additions & 2 deletions src-tauri/gen/apple/sage-tauri.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
CODE_SIGN_ENTITLEMENTS = "sage-tauri_iOS/sage-tauri_iOS.entitlements";
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 5PSQ3NC8JP;
DEVELOPMENT_TEAM = NQJQRYZZG3;
ENABLE_BITCODE = NO;
"EXCLUDED_ARCHS[sdk=iphoneos*]" = "arm64-sim x86_64";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
Expand Down Expand Up @@ -472,7 +472,7 @@
CODE_SIGN_ENTITLEMENTS = "sage-tauri_iOS/sage-tauri_iOS.entitlements";
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 5PSQ3NC8JP;
DEVELOPMENT_TEAM = NQJQRYZZG3;
ENABLE_BITCODE = NO;
"EXCLUDED_ARCHS[sdk=iphoneos*]" = "arm64-sim x86_64";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
Expand Down
25 changes: 2 additions & 23 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,8 @@
@tailwind components;
@tailwind utilities;

html,
body,
#root {
height: 100%;
/* overflow: hidden; */
/* position: fixed; */
/* width: 100%; */
/* top: 0;
left: 0; */
}

body {
/* padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom); */
/* height: 100vh; */
/* position: fixed;
overflow: hidden; */
}

body {
/* padding-top: env(safe-area-inset-top); */
/* padding-bottom: env(safe-area-inset-bottom); */
height: 100vh;
html {
overscroll-behavior: none;
}

@layer base {
Expand Down

0 comments on commit d3e24bb

Please sign in to comment.