Skip to content

Commit

Permalink
web/satellite: update button hover state to match the figma
Browse files Browse the repository at this point in the history
This change updates the buttons same as the "New Folder" button to
have hover state consistent with the design in the figma.

It also fixes an issue where table view will be shown by default even
if the user has less than 8 projects.

Issue: #5971

Change-Id: Ic8b99496e1990550a9ea1550c3c2bd80bf997aa9
  • Loading branch information
wilfred-asomanii authored and Storj Robot committed Jun 28, 2023
1 parent 6f078ac commit 14beb9a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions web/satellite/src/components/common/VButton.vue
Expand Up @@ -317,8 +317,7 @@ function handleClick(): void {
background-color: #0059d0;
&.transparent,
&.blue-white,
&.white {
&.blue-white {
box-shadow: none !important;
background-color: #2683ff !important;
border: 1px solid #2683ff !important;
Expand All @@ -333,6 +332,20 @@ function handleClick(): void {
}
}
&.white {
box-shadow: none !important;
border: 1px solid var(--c-blue-3) !important;
:deep(path),
:deep(rect) {
fill: var(--c-blue-3) !important;
}
.label {
color: var(--c-blue-3) !important;
}
}
&.grey-blue {
background-color: #2683ff !important;
border-color: #2683ff !important;
Expand Down
Expand Up @@ -121,7 +121,7 @@ const hasProjectTableViewConfigured = ref(appStore.hasProjectTableViewConfigured
* Whether to use the table view.
*/
const isTableViewSelected = computed((): boolean => {
if (!hasProjectTableViewConfigured.value && projects.value.length > 1) {
if (!hasProjectTableViewConfigured.value && projects.value.length > 8) {
// show the table by default if the user has more than 8 projects.
return true;
}
Expand Down

0 comments on commit 14beb9a

Please sign in to comment.