Skip to content

Commit

Permalink
💄 修复新人引导样式问题
Browse files Browse the repository at this point in the history
  • Loading branch information
muwoo committed Oct 13, 2023
1 parent 8fd9f34 commit a7a85a7
Show file tree
Hide file tree
Showing 20 changed files with 17 additions and 10 deletions.
6 changes: 3 additions & 3 deletions guide/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ const netStep = () => {
}
.info {
padding-top: 42px;
margin-right: 178px;
margin-left: 178px;
box-sizing: border-box;
width: 100%;
text-align: right;
text-align: left;
position: relative;
color: @text-color;
.top-icon {
position: absolute;
right: 0;
left: 0;
top: 0;
user-select: none;
width: 1em;
Expand Down
Binary file modified guide/src/assets/img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified guide/src/assets/img_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified guide/src/assets/img_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified guide/src/assets/img_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubick",
"version": "4.0.3",
"version": "4.0.4",
"author": "muwoo <2424880409@qq.com>",
"private": true,
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion public/guide/css/app.38aced59.css

This file was deleted.

1 change: 1 addition & 0 deletions public/guide/css/app.8c142cf3.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/guide/img/img.02a1c5f1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/guide/img/img.1fca5a5d.png
Binary file not shown.
Binary file added public/guide/img/img_1.097595c9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/guide/img/img_1.d68b4d23.png
Binary file not shown.
Binary file added public/guide/img/img_2.cd4c34db.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/guide/img/img_2.d6eaf56d.png
Binary file not shown.
Binary file added public/guide/img/img_3.1ad5b474.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/guide/img/img_3.39f7605a.png
Binary file not shown.
2 changes: 1 addition & 1 deletion public/guide/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>rubick 桌面端开源工具箱</title><script defer="defer" src="js/chunk-vendors.c1874e13.js"></script><script defer="defer" src="js/app.edc4437a.js"></script><link href="css/app.38aced59.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but guide doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>rubick 桌面端开源工具箱</title><script defer="defer" src="js/chunk-vendors.c1874e13.js"></script><script defer="defer" src="js/app.b3377163.js"></script><link href="css/app.8c142cf3.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but guide doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/common/constans/common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const WINDOW_WIDTH = 688;
export const WINDOW_HEIGHT = 60;

export const GUIDE_WIDTH = 800;
export const GUIDE_HEIGHT = 600;

export const WINDOW_MIN_HEIGHT = 60;
10 changes: 7 additions & 3 deletions src/main/browsers/guide.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { BrowserWindow, ipcMain, nativeTheme, screen } from 'electron';
import path from 'path';
import { WINDOW_HEIGHT, WINDOW_MIN_HEIGHT, WINDOW_WIDTH } from '@/common/constans/common';
import {
GUIDE_WIDTH,
WINDOW_MIN_HEIGHT,
GUIDE_HEIGHT,
} from '@/common/constans/common';

const getWindowPos = (width, height) => {
const screenPoint = screen.getCursorScreenPoint();
Expand Down Expand Up @@ -40,8 +44,8 @@ export default () => {
enableLargerThanScreen: true,
x,
y,
width: WINDOW_WIDTH,
height: WINDOW_HEIGHT,
width: GUIDE_WIDTH,
height: GUIDE_HEIGHT,
minHeight: WINDOW_MIN_HEIGHT,
webPreferences: {
webSecurity: false,
Expand Down

0 comments on commit a7a85a7

Please sign in to comment.