@mixd-id/web-scaffold 0.2.240704 → 0.2.240706

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.2.240704",
4
+ "version": "0.2.240706",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -169,21 +169,14 @@ export default{
169
169
 
170
170
  .button-primary {
171
171
  @apply bg-primary-500 text-white rounded-lg;
172
+ @apply hover:bg-primary-600 focus:border-primary-300;
172
173
  box-shadow: 0 2px 1px rgba(0, 0, 0, .05);
173
174
  border: solid 1px rgb(var(--primary-500));
174
175
  }
175
176
 
176
- .button-primary:focus {
177
- border-color: rgb(var(--primary-600));
178
- }
179
-
180
- .button-primary:hover {
181
- @apply bg-primary-600;
182
- }
183
-
184
177
  .button-primary-disabled,
185
178
  .button-primary-disabled:hover {
186
- @apply bg-primary-500 top-0 left-0 cursor-not-allowed text-opacity-50;
179
+ @apply bg-primary-300 border-primary-300 top-0 left-0 cursor-not-allowed text-opacity-50;
187
180
  @apply top-0 left-0;
188
181
  }
189
182
 
@@ -617,7 +617,8 @@ export default{
617
617
 
618
618
  this._config = setupConfig(JSON.parse(JSON.stringify((await this.defaultConfig()).default)))
619
619
 
620
- this.saveConfig()
620
+ if(save)
621
+ this.saveConfig()
621
622
  },
622
623
 
623
624
  async loadConfig(){
@@ -634,7 +635,9 @@ export default{
634
635
  else{
635
636
  return this.socket.send(this.presetSrc, { key:this.presetKey })
636
637
  .then(async (config) => {
637
- this._config = config
638
+ !config ?
639
+ await this.loadDefaultConfig() :
640
+ this._config = config
638
641
  })
639
642
  .catch(() => {})
640
643
  }
@@ -222,7 +222,7 @@ export default{
222
222
  }
223
223
 
224
224
  .resize2 {
225
- @apply h-[3px] cursor-n-resize absolute top-0 right-0 left-0 bg-red-500;
225
+ @apply h-[3px] cursor-n-resize absolute top-0 right-0 left-0 bg-red-500 z-50;
226
226
  }
227
227
 
228
228
  </style>