mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-04 04:43:01 +01:00
Do not use icon for each file, folder to index in desktop app.
Other minor fixes based on PR feedback
This commit is contained in:
parent
e8f568d79c
commit
2f1756cc15
4 changed files with 3 additions and 15 deletions
|
@ -302,7 +302,7 @@
|
||||||
div.file-element,
|
div.file-element,
|
||||||
div.folder-element {
|
div.folder-element {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr auto 1fr;
|
grid-template-columns: auto 1fr;
|
||||||
border: 1px solid rgb(229, 229, 229);
|
border: 1px solid rgb(229, 229, 229);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1),0px 1px 2px -1px rgba(0,0,0,0.8);
|
box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.1),0px 1px 2px -1px rgba(0,0,0,0.8);
|
||||||
|
|
|
@ -62,12 +62,6 @@ function makeFileElement(file) {
|
||||||
let fileElement = document.createElement("div");
|
let fileElement = document.createElement("div");
|
||||||
fileElement.classList.add("file-element");
|
fileElement.classList.add("file-element");
|
||||||
|
|
||||||
let fileIconElement = document.createElement("img");
|
|
||||||
fileIconElement.classList.add("card-icon");
|
|
||||||
fileIconElement.src = "./assets/icons/plaintext.svg";
|
|
||||||
fileIconElement.alt = "File";
|
|
||||||
fileElement.appendChild(fileIconElement);
|
|
||||||
|
|
||||||
let fileNameElement = document.createElement("div");
|
let fileNameElement = document.createElement("div");
|
||||||
fileNameElement.classList.add("content-name");
|
fileNameElement.classList.add("content-name");
|
||||||
fileNameElement.innerHTML = file.path;
|
fileNameElement.innerHTML = file.path;
|
||||||
|
@ -90,12 +84,6 @@ function makeFolderElement(folder) {
|
||||||
let folderElement = document.createElement("div");
|
let folderElement = document.createElement("div");
|
||||||
folderElement.classList.add("folder-element");
|
folderElement.classList.add("folder-element");
|
||||||
|
|
||||||
let folderIconElement = document.createElement("img");
|
|
||||||
folderIconElement.classList.add("card-icon");
|
|
||||||
folderIconElement.src = "./assets/icons/folder.svg";
|
|
||||||
folderIconElement.alt = "File";
|
|
||||||
folderElement.appendChild(folderIconElement);
|
|
||||||
|
|
||||||
let folderNameElement = document.createElement("div");
|
let folderNameElement = document.createElement("div");
|
||||||
folderNameElement.classList.add("content-name");
|
folderNameElement.classList.add("content-name");
|
||||||
folderNameElement.innerHTML = folder.path;
|
folderNameElement.innerHTML = folder.path;
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-modal-title {
|
div.login-modal-title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
|
|
|
@ -169,7 +169,7 @@ def md_content_config():
|
||||||
return markdown_config
|
return markdown_config
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="function")
|
||||||
def chat_client(search_config: SearchConfig, default_user2: KhojUser):
|
def chat_client(search_config: SearchConfig, default_user2: KhojUser):
|
||||||
# Initialize app state
|
# Initialize app state
|
||||||
state.config.search_type = search_config
|
state.config.search_type = search_config
|
||||||
|
|
Loading…
Reference in a new issue