Skip to content

Commit

Permalink
回退了1.1.10-preview.3的一些修改,等待成熟之后再更新
Browse files Browse the repository at this point in the history
  • Loading branch information
tianzhentech committed Feb 3, 2025
1 parent 0ad7b17 commit 60891ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 92 deletions.
97 changes: 6 additions & 91 deletions app/components/chat.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,6 @@
justify-content: space-between;
gap: 5px;

@media screen and (max-width: 600px) {
.chat-input-action {
background: rgba(255, 255, 255, 0.7) !important;
backdrop-filter: blur(10px);
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

@media (prefers-color-scheme: dark) {
background: rgba(30, 30, 30, 0.7) !important;
}
}
}

&-end {
display: flex;
margin-left: auto;
Expand Down Expand Up @@ -306,13 +293,9 @@
overflow: auto;
overflow-x: hidden;
padding: 20px;
padding-bottom: 40px;
position: relative;
overscroll-behavior: none;

@media screen and (max-width: 600px) {
padding-bottom: 125px;
margin-bottom: 0px;
}
}

.chat-body-main-title {
Expand Down Expand Up @@ -606,30 +589,6 @@
margin-bottom: 10px;
}
}

@media screen and (max-width: 600px) {
background: transparent;
border-top: none;
box-shadow: none;
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 10;

.chat-input-panel-inner {
.chat-input {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

@media (prefers-color-scheme: dark) {
background: rgba(30, 30, 30, 0.7);
}
}
}
}
}

@mixin single-line {
Expand All @@ -645,29 +604,13 @@
overflow: auto;
display: flex;
flex-direction: column-reverse;

background-color: var(--white);
border: var(--border-in-light);
border-radius: 10px;
margin-bottom: 10px;
box-shadow: var(--shadow);

@media screen and (max-width: 600px) {
background: transparent;
border: none;
box-shadow: none;

.prompt-hint {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

@media (prefers-color-scheme: dark) {
background: rgba(30, 30, 30, 0.7);
}
}
}

.prompt-hint {
color: var(--black);
padding: 6px 10px;
Expand Down Expand Up @@ -703,27 +646,19 @@
}

.chat-input-panel-inner {
position: relative;
cursor: text;
display: flex;
flex: 1;
border-radius: 10px;
border: var(--border-in-light);

@media screen and (max-width: 600px) {
background: transparent;
border: none;
}
}

.chat-input-panel-inner-attach {
padding-bottom: 80px;
}

.chat-input-panel-inner:has(.chat-input:focus) {
@media screen and (max-width: 600px) {
border: none;
}
border: 1px solid var(--primary);
}

.chat-input {
Expand All @@ -740,17 +675,6 @@
outline: none;
box-sizing: border-box;
min-height: 68px;

@media screen and (max-width: 600px) {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

@media (prefers-color-scheme: dark) {
background: rgba(30, 30, 30, 0.7);
}
}
}

.chat-input:focus {
Expand All @@ -759,19 +683,10 @@
.chat-input-send {
background-color: var(--primary);
color: white;

position: absolute;
right: 10px;
bottom: 14px;
border-radius: 16px;

@media screen and (max-width: 600px) {
width: 32px;
height: 32px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
right: 30px;
bottom: 32px;
}

@media only screen and (max-width: 600px) {
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"package": {
"productName": "NeatChat",
"version": "1.1.10-preview.4"
"version": "1.1.10"
},
"tauri": {
"allowlist": {
Expand Down

0 comments on commit 60891ae

Please sign in to comment.