-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Files Sidebar): Show empty state when project contains no files
- Loading branch information
1 parent
81724f4
commit eaac750
Showing
5 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...s/app-project/app-project-sidebar/app-project-sidebar-files/app-project-sidebar-files.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
:host { | ||
@apply block overflow-scroll resize-x max-w-xs; | ||
min-width: 12rem; | ||
} | ||
|
||
ul { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
desktop/src/renderer/components/sidebar/app-sidebar-empty/app-sidebar-empty.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
:host { | ||
@apply block text-xs text-center p-4; | ||
|
||
::slotted(*) { | ||
@apply text-xs text-center font-normal; | ||
color: var(--color-neutral-500); | ||
} | ||
|
||
::slotted(stencila-icon) { | ||
@apply text-lg; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
desktop/src/renderer/components/sidebar/app-sidebar-empty/app-sidebar-empty.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'app-sidebar-empty', | ||
styleUrl: 'app-sidebar-empty.css', | ||
scoped: true, | ||
}) | ||
export class AppSidebarEmptyState { | ||
render() { | ||
return ( | ||
<Host> | ||
<div class="app-sidebar-empty"> | ||
<slot /> | ||
</div> | ||
</Host> | ||
) | ||
} | ||
} |