diff --git a/src/assets/icons/arrowLeft.svg b/src/assets/icons/arrowLeft.svg index df24f0d..a9f618f 100644 --- a/src/assets/icons/arrowLeft.svg +++ b/src/assets/icons/arrowLeft.svg @@ -1,3 +1,6 @@ - - + + + + + diff --git a/src/assets/icons/caretDown.svg b/src/assets/icons/caretDown.svg index 621b2b5..258e42a 100644 --- a/src/assets/icons/caretDown.svg +++ b/src/assets/icons/caretDown.svg @@ -1,3 +1,6 @@ - - + + + + + diff --git a/src/assets/icons/settings-cog.svg b/src/assets/icons/settings-cog.svg index af9aabb..389fa36 100644 --- a/src/assets/icons/settings-cog.svg +++ b/src/assets/icons/settings-cog.svg @@ -1,3 +1,7 @@ - - + + + + + + diff --git a/src/components/fileBrowser.jsx b/src/components/fileBrowser.jsx index 7d26078..d62dba9 100644 --- a/src/components/fileBrowser.jsx +++ b/src/components/fileBrowser.jsx @@ -57,6 +57,8 @@ const FBContainer = styled.div` width: 100%; height: inherit; position: relative; + border-radius: .3rem; + box-shadow: ${({active}) => active ? "0 0 6px -3px var(--tertiary-color)" : ""}; ` // bunch of styled components @@ -67,7 +69,7 @@ const BrowserWrapper = styled.div` overflow-y: scroll; position: relative; background: var(--box-radial-gradient); - border-radius: 0 0 .3em .3em; + border-radius: 0 0 .3rem .3rem; user-select: none; &::-webkit-scrollbar { @@ -112,6 +114,7 @@ const BrowserHeaderDiv = styled.div` display: flex; align-items: center; gap: 0 .25rem; + padding-left: .5rem; @media only screen and (max-width: 800px) { &:nth-child(1) { @@ -169,11 +172,6 @@ const SearchLabel = styled(Label)` const BrowseImage = styled.img` cursor: pointer; - - @media screen and (max-width: 800px) { - width: 30px; - height: 30px; - } ` const SearchInput = styled(Input)` width: 15rem; @@ -571,7 +569,7 @@ class FileBrowser extends Component { const rows = Math.max(this.props.files.length, files.length) return ( - + { this.renderMenu() } @@ -583,8 +581,8 @@ class FileBrowser extends Component { } - - + +

{ this.props.currentPath !== "/" ? this.renderPath() : "/" }

@@ -600,11 +598,11 @@ class FileBrowser extends Component { { orderBy === "name" && {orderAscending @@ -615,11 +613,11 @@ class FileBrowser extends Component { { orderBy === "modified" && {orderAscending @@ -630,11 +628,11 @@ class FileBrowser extends Component { { orderBy === "size" && {orderAscending diff --git a/src/components/fileBrowser.styled.js b/src/components/fileBrowser.styled.js index 3f1a945..e8d72b6 100644 --- a/src/components/fileBrowser.styled.js +++ b/src/components/fileBrowser.styled.js @@ -1,4 +1,5 @@ import styled from 'styled-components' +import { Button } from '../styled' export const Input = styled.input` width: 100%; @@ -24,18 +25,18 @@ export const Label = styled.label` export const FileBrowsersContainer = styled.div` display: flex; - gap: 0 1rem; + flex-direction: column; + gap: .5rem 0; height: calc(94vh - 9rem); - + @media only screen and (max-width: 800px) { height: calc(100vh - 9rem); } -` + ` export const FileBrowserWrapper = styled.div` display: flex; - flex-direction: column; - gap: .5rem 0; + gap: 0 1rem; width: 100%; height: inherit; ` @@ -44,4 +45,17 @@ export const FileBrowserRemotes = styled.div` display: flex; gap: .5rem; justify-content: flex-start; +` + +export const FileBrowserSettings = styled.div` + display: flex; + gap: .5rem; + flex-grow: 1; + justify-content: flex-end; +` + +export const BrowserSettingButton = styled(Button)` + padding: .5rem; + display: flex; + align-items: center; ` \ No newline at end of file