Skip to content

Commit

Permalink
styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
interim17 committed Feb 14, 2025
1 parent 09e6620 commit 12dd053
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/components/CustomButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ const generateButtonStyles = (
},
}) => {
const buttonTheme = button[variant][theme];
const { background, text, hover, focus, active, disabled } =
const { background, text, border, hover, focus, active, disabled } =
buttonTheme;
return css`
background-color: ${background};
color: ${text};
border: 1px solid ${border};
&&&& {
&:hover:not(:disabled) {
Expand Down
1 change: 1 addition & 0 deletions src/components/CustomDropdown/DropdownMenuItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const baseStyles = css`
font-size: 14px;
&&& {
align-items: baseline;
&:focus-visible,
&:focus-visible:hover {
outline: 1.5px solid ${({ theme }) => theme.colors.dropdown.active};
Expand Down
18 changes: 14 additions & 4 deletions src/components/ModelCard/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,25 @@
align-items: flex-start;
}

.thumbnail {
display: grid;
}

.static-thumbnail,
.animated-thumbnail {
grid-area: 1 / 1;
}

.animated-thumbnail {
display: none;
opacity: 0;
}

.thumbnail:hover .animated-thumbnail {
display: block;
opacity: 1;
}

.thumbnail:hover .static-thumbnail {
display: none;
opacity: 0;
}

.trajectory-description {
Expand All @@ -51,7 +60,8 @@
}

/* Necessary to make flexbox spacing work */
.version-tag, .simulated-time {
.version-tag,
.simulated-time {
margin: 0 !important;
}

Expand Down
8 changes: 8 additions & 0 deletions src/components/SideBar/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
padding: 0 0 0 10px;
}

.sider.left {
left: 0;
right: inherit;
padding: 0 0 10px;
}

.sider :global(.ant-collapse-content-box) {
padding: 3px 0;
}
Expand All @@ -27,6 +33,8 @@

.sider :global(.ant-layout-sider-children) {
overflow: auto;
overflow-x: hidden;
overflow-y: auto;
}

:global(.ant-collapse),
Expand Down
1 change: 0 additions & 1 deletion src/components/SideBarContents/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
border-radius: 6px;
flex: 1;
background-color: var(--dark-theme-sidebar-bg);
padding-right: 10px;
}

.card :global(.ant-card-head) {
Expand Down
1 change: 1 addition & 0 deletions src/components/ViewerTitle/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@
font-size: 12px;
border-color: var(--dark-theme-version-badge-purple);
background-color: var(--dark-theme-version-badge-purple);
color: var(--dark-theme-text-color-bright)
}
4 changes: 4 additions & 0 deletions src/containers/ModelPanel/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
height: 100%;
}

.container :global(.ant-card) {
padding-right: 10px;
}

.container :global(.ant-card-body) {
padding: 0 0 0 10px;
}

0 comments on commit 12dd053

Please sign in to comment.