Skip to content

Commit

Permalink
Details tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinBrett committed Sep 30, 2024
1 parent ea6b08f commit 4dc0894
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions components/system/Files/FileEntry/StyledColumnRow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ const StyledColumnRow = styled.div`
div {
color: #fff;
overflow: hidden;
padding-right: ${({ theme }) =>
theme.sizes.fileManager.detailsEndPadding}px;
text-overflow: ellipsis;
white-space: nowrap;
&:last-child {
margin-right: -6px;
padding-right: 6px;
margin-right: -${({ theme }) => theme.sizes.fileManager.detailsEndPadding / 2}px;
padding-right: ${({ theme }) =>
theme.sizes.fileManager.detailsEndPadding / 2}px;
}
}
`;
Expand Down
2 changes: 2 additions & 0 deletions components/system/Files/Views/Details/StyledFileEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const StyledFileEntry = styled.li<StyledFileEntryProps>`
display: flex;
flex-direction: row;
height: ${({ theme }) => theme.sizes.fileManager.detailsRowHeight};
padding-right: ${({ theme }) =>
theme.sizes.fileManager.detailsEndPadding}px;
place-items: center;
position: relative;
Expand Down
4 changes: 2 additions & 2 deletions contexts/process/directory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ const directory: Processes = {
Component: dynamic(() => import("components/apps/FileExplorer")),
backgroundColor: "#202020",
defaultSize: {
height: 260,
width: 407,
height: 330,
width: 484,
},
icon: FOLDER_ICON,
title: "File Explorer",
Expand Down
1 change: 1 addition & 0 deletions styles/defaultTheme/sizes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const sizes = {
columnHeight: "25px",
columnMinWidth: 80,
columnResizeWidth: 7,
detailsEndPadding: 15,
detailsRowHeight: "22px",
detailsStartPadding: 14,
gridEntryHeight: "70px",
Expand Down

0 comments on commit 4dc0894

Please sign in to comment.