mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Cleaned up Past Chats view
- normalized borders - character name at the top of popup - added grey border
This commit is contained in:
@@ -1246,15 +1246,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="shadow_select_chat_popup">
|
<div id="shadow_select_chat_popup">
|
||||||
<div id="select_chat_popup">
|
<div id="select_chat_popup">
|
||||||
<div id="select_chat_popup_text">
|
|
||||||
<img id="select_chat_cross" src="img/cross.png" alt="Close">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div id="select_chat_import"> <!-- import chat popup header -->
|
<div id="select_chat_import"> <!-- import chat popup header -->
|
||||||
<div id="chat_import_button" class="right_menu_button">
|
<div id="chat_import_button" class="menu_button">
|
||||||
<img alt="" class="svg_icon" src="img/cloud-arrow-up-solid.svg" />
|
<img alt="" class="svg_icon" src="img/file-arrow-up-solid.svg" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div id="selectChatPopupHeaderText" class="TxtLrgBoldCenter">
|
||||||
|
<span id="ChatHistoryCharName"></span>
|
||||||
|
<br>
|
||||||
|
Chat History
|
||||||
<a href="/notes/10" class="notes-link" target="_blank"><span class="note-link-span">?</span></a>
|
<a href="/notes/10" class="notes-link" target="_blank"><span class="note-link-span">?</span></a>
|
||||||
</div>
|
</div>
|
||||||
<form id="form_import_chat" action="javascript:void(null);" method="post" enctype="multipart/form-data" style="display: none;">
|
<form id="form_import_chat" action="javascript:void(null);" method="post" enctype="multipart/form-data" style="display: none;">
|
||||||
@@ -1263,6 +1262,7 @@
|
|||||||
<input id="chat_import_avatar_url" name="avatar_url" class="text_pole" maxlength="999" size="2" value="" autocomplete="off" style="display: none;">
|
<input id="chat_import_avatar_url" name="avatar_url" class="text_pole" maxlength="999" size="2" value="" autocomplete="off" style="display: none;">
|
||||||
<input id="chat_import_character_name" name="character_name" class="text_pole" maxlength="999" size="2" value="" autocomplete="off" style="display: none;">
|
<input id="chat_import_character_name" name="character_name" class="text_pole" maxlength="999" size="2" value="" autocomplete="off" style="display: none;">
|
||||||
</form>
|
</form>
|
||||||
|
<img id="select_chat_cross" src="img/cross.png" alt="Close">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="select_chat_div">
|
<div id="select_chat_div">
|
||||||
|
@@ -2303,7 +2303,7 @@ async function getAllCharaChats() {
|
|||||||
a["file_name"].localeCompare(b["file_name"])
|
a["file_name"].localeCompare(b["file_name"])
|
||||||
);
|
);
|
||||||
data = data.reverse();
|
data = data.reverse();
|
||||||
|
$("#ChatHistoryCharName").html(characters[this_chid].name);
|
||||||
for (const key in data) {
|
for (const key in data) {
|
||||||
let strlen = 300;
|
let strlen = 300;
|
||||||
let mes = data[key]["mes"];
|
let mes = data[key]["mes"];
|
||||||
@@ -3561,7 +3561,7 @@ $(document).ready(function () {
|
|||||||
if (id == "option_select_chat") {
|
if (id == "option_select_chat") {
|
||||||
if (selected_group) {
|
if (selected_group) {
|
||||||
// will open a chat selection screen
|
// will open a chat selection screen
|
||||||
openNavToggle();
|
/* openNavToggle(); */
|
||||||
$("#rm_button_characters").trigger("click");
|
$("#rm_button_characters").trigger("click");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -3580,7 +3580,7 @@ $(document).ready(function () {
|
|||||||
else if (id == "option_start_new_chat") {
|
else if (id == "option_start_new_chat") {
|
||||||
if (selected_group) {
|
if (selected_group) {
|
||||||
// will open a group creation screen
|
// will open a group creation screen
|
||||||
openNavToggle();
|
/* openNavToggle(); */
|
||||||
$("#rm_button_group_chats").trigger("click");
|
$("#rm_button_group_chats").trigger("click");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -1148,7 +1148,9 @@ input[type=search]:focus::-webkit-search-cancel-button {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar_div .menu_button, .form_create_bottom_buttons_block .menu_button {
|
.avatar_div .menu_button,
|
||||||
|
.form_create_bottom_buttons_block .menu_button,
|
||||||
|
#select_chat_popup .menu_button {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: var(--white70);
|
color: var(--white70);
|
||||||
background-color: var(--black50a);
|
background-color: var(--black50a);
|
||||||
@@ -1156,7 +1158,7 @@ input[type=search]:focus::-webkit-search-cancel-button {
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 10px 0;
|
margin: 0;
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
min-width:40px;
|
min-width:40px;
|
||||||
@@ -1720,6 +1722,12 @@ input[type="range"]{
|
|||||||
|
|
||||||
/*Notes '?' links*/
|
/*Notes '?' links*/
|
||||||
|
|
||||||
|
|
||||||
|
.notes-link {
|
||||||
|
margin-left: 3px;
|
||||||
|
position: absolute;
|
||||||
|
|
||||||
|
}
|
||||||
.note-link-span {
|
.note-link-span {
|
||||||
color: var(--sienna);
|
color: var(--sienna);
|
||||||
border: 1px solid var(--sienna);
|
border: 1px solid var(--sienna);
|
||||||
@@ -1733,6 +1741,7 @@ input[type="range"]{
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
|
text-align: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1971,10 +1980,11 @@ input[type="range"]{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#select_chat_popup {
|
#select_chat_popup {
|
||||||
display: block;
|
display: grid;
|
||||||
grid-template-rows: 50px 100px 100px auto 45px;
|
grid-template-rows: auto auto;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
max-height: 70vh;
|
height: min-content;
|
||||||
|
max-height: calc(100vh - 55px);
|
||||||
min-height: 100px;
|
min-height: 100px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 2066;
|
z-index: 2066;
|
||||||
@@ -1982,12 +1992,23 @@ input[type="range"]{
|
|||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
margin-top: 6vh;
|
top: 0;
|
||||||
box-shadow: 0px 0px 20px var(--black30a);
|
bottom: 0;
|
||||||
|
margin-top: auto;
|
||||||
|
margin-bottom: auto;
|
||||||
|
/* margin-top: 40px; */
|
||||||
|
box-shadow: 0px 0px 20px black;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color: var(--black70a);
|
background-color: var(--black50a);
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
overflow-y: scroll;
|
overflow-y: auto;
|
||||||
|
border: 1px solid var(--grey30);
|
||||||
|
}
|
||||||
|
|
||||||
|
.TxtLrgBoldCenter {
|
||||||
|
text-align: center;
|
||||||
|
font-size: large;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
#export_div {
|
#export_div {
|
||||||
@@ -2006,13 +2027,12 @@ input[type="range"]{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#select_chat_div {
|
#select_chat_div {
|
||||||
margin-left: 5px;
|
/* margin-left: 5px; */
|
||||||
margin-top: 30px;
|
/* margin-top: 30px; */
|
||||||
overflow-x: hidden;
|
/* overflow-x: hidden;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll; */
|
||||||
|
padding: 0;
|
||||||
height: min-content;
|
height: min-content;
|
||||||
max-height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#select_chat_div hr {
|
#select_chat_div hr {
|
||||||
@@ -2024,14 +2044,13 @@ input[type="range"]{
|
|||||||
grid-template-columns: min-content auto;
|
grid-template-columns: min-content auto;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
grid-gap: 10px;
|
grid-gap: 10px;
|
||||||
margin-left: 15px;
|
margin-bottom: 10px;
|
||||||
margin-top: 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select_chat_block {
|
.select_chat_block {
|
||||||
border-radius: 5px;
|
border-radius: 10px;
|
||||||
margin-right: 10px;
|
/* margin-right: 10px; */
|
||||||
margin-bottom: 10px;
|
margin-top: 10px;
|
||||||
border: 1px solid var(--white30a);
|
border: 1px solid var(--white30a);
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -2058,19 +2077,13 @@ input[type="range"]{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.select_chat_block_mes {
|
.select_chat_block_mes {
|
||||||
margin-right: 6px;
|
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select_chat_block .avatar {
|
|
||||||
/*height:30px;
|
|
||||||
width:30px;*/
|
|
||||||
}
|
|
||||||
|
|
||||||
#select_chat_cross {
|
#select_chat_cross {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
top:14px;
|
top:15px;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -2500,6 +2513,7 @@ h2 {
|
|||||||
a {
|
a {
|
||||||
color: orange;
|
color: orange;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user