@ysgroup/ui 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ysgroup/ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
7
7
  "dependencies": {
8
- "@ysgroup/contracts": "0.1.1",
9
- "@ysgroup/theme": "0.1.0"
8
+ "@ysgroup/contracts": "workspace:*",
9
+ "@ysgroup/theme": "workspace:*"
10
10
  },
11
11
  "peerDependencies": {
12
12
  "element-plus": ">=2.9",
@@ -20,4 +20,4 @@
20
20
  "publishConfig": {
21
21
  "access": "public"
22
22
  }
23
- }
23
+ }
@@ -73,20 +73,25 @@ async function submit() {
73
73
 
74
74
  <style scoped>
75
75
  .ys-login {
76
- height: 100vh;
76
+ min-height: 100vh;
77
+ min-height: 100dvh;
77
78
  display: flex;
78
79
  align-items: center;
79
80
  justify-content: center;
81
+ box-sizing: border-box;
82
+ padding: 16px;
80
83
  background: var(--ys-color-bg);
81
84
  }
82
85
  .ys-login__card {
83
- width: 360px;
86
+ width: min(360px, 100%);
87
+ box-sizing: border-box;
84
88
  padding: 40px 32px;
85
89
  background: var(--ys-color-bg-elevated);
86
90
  border: 1px solid var(--ys-color-border);
87
91
  border-radius: var(--ys-radius-m);
88
92
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
89
93
  text-align: center;
94
+ transform: translateY(clamp(-48px, -5vh, -24px));
90
95
  }
91
96
  .ys-login__logo {
92
97
  width: 68px;
@@ -105,4 +110,15 @@ async function submit() {
105
110
  font-size: 18px;
106
111
  font-weight: 600;
107
112
  }
113
+
114
+ @media (max-height: 640px) {
115
+ .ys-login {
116
+ align-items: flex-start;
117
+ overflow-y: auto;
118
+ }
119
+
120
+ .ys-login__card {
121
+ transform: none;
122
+ }
123
+ }
108
124
  </style>