File Explorer style tweaks

This commit is contained in:
Dustin Brett 2024-09-26 18:42:21 -07:00
parent 97a3248d0d
commit d944af70c5
6 changed files with 22 additions and 13 deletions

View File

@ -7,7 +7,7 @@ const StyledAddressBar = styled.div`
border: 1px solid rgb(83, 83, 83);
display: flex;
height: ${({ theme }) => theme.sizes.fileExplorer.navInputHeight}px;
margin: 7px 12px 6px 5px;
margin: 6px 12px 5px 5px;
padding: 0 22px 2px 25px;
position: relative;
width: 100%;
@ -20,7 +20,7 @@ const StyledAddressBar = styled.div`
font-size: 12px;
font-weight: 400;
height: ${({ theme }) => theme.sizes.fileExplorer.navInputHeight - 2}px;
padding-bottom: 1px;
padding-bottom: 2px;
text-overflow: ellipsis;
white-space: nowrap;
width: calc(100% - 2px);
@ -29,7 +29,7 @@ const StyledAddressBar = styled.div`
img {
left: 2px;
position: absolute;
top: 3px;
top: 1px;
}
.refresh {

View File

@ -1,14 +1,17 @@
import styled from "styled-components";
import StyledLoading from "components/system/Files/FileManager/StyledLoading";
import StyledFileManager from "components/system/Files/Views/Icon/StyledFileManager";
import StyledIconFileManager from "components/system/Files/Views/Icon/StyledFileManager";
const StyledFileExplorer = styled.div`
${StyledFileManager} {
${StyledIconFileManager} {
column-gap: 2px;
height: ${({ theme }) =>
`calc(100% - ${theme.sizes.fileExplorer.navBarHeight} - ${theme.sizes.fileExplorer.statusBarHeight})`};
padding-left: 5px;
padding-right: 5px;
padding: 6px;
figcaption {
padding: 1px 0 2px;
}
}
${StyledLoading} {

View File

@ -7,7 +7,7 @@ const StyledNavigation = styled.nav`
button {
height: 16px;
margin: 11px 9px;
margin: 9px 9px 10px;
width: 16px;
svg {

View File

@ -4,7 +4,7 @@ const StyledSearch = styled.div`
border: 1px solid rgb(83, 83, 83);
display: flex;
height: ${({ theme }) => theme.sizes.fileExplorer.navInputHeight}px;
margin: 7px 12px 6px 0;
margin: 6px 12px 6px 0;
max-width: 148px;
overflow: hidden;
padding: 0;
@ -23,7 +23,7 @@ const StyledSearch = styled.div`
font-size: 12px;
font-weight: 400;
height: ${({ theme }) => theme.sizes.fileExplorer.navInputHeight - 2}px;
padding-bottom: 1px;
padding-bottom: 2px;
padding-left: 8px;
text-overflow: ellipsis;
white-space: nowrap;
@ -33,6 +33,12 @@ const StyledSearch = styled.div`
filter: invert(1);
padding-right: 4px;
}
&:focus {
&::placeholder {
color: transparent;
}
}
}
input:placeholder-shown ~ svg {

View File

@ -88,7 +88,7 @@ const directory: Processes = {
backgroundColor: "#202020",
defaultSize: {
height: 260,
width: 405,
width: 407,
},
icon: FOLDER_ICON,
title: "File Explorer",

View File

@ -18,8 +18,8 @@ const sizes = {
renameWidth: 75,
},
fileExplorer: {
navBarHeight: "38px",
navInputHeight: 24,
navBarHeight: "35px",
navInputHeight: 22,
statusBarHeight: "23px",
},
fileManager: {