This repository has been archived by the owner on Jun 23, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add tab button to duplicate currently selected window (#104)
* feat: initial tabs adding mechanism * fix: add tab button space * fix: add tab icon
- Loading branch information
Showing
12 changed files
with
199 additions
and
107 deletions.
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
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
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
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
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,21 +1,28 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const StyledTabbar = styled.div` | ||
height: 100%; | ||
width: 100%; | ||
position: relative; | ||
overflow: hidden; | ||
transition: 0.3s opacity, 0.3s transform; | ||
margin-right: 32px; | ||
display: flex; | ||
`; | ||
|
||
export const TabsContainer = styled.div` | ||
height: 100%; | ||
width: 100%; | ||
position: relative; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
display: flex; | ||
align-items: center; | ||
`; | ||
import styled from 'styled-components'; | ||
import { ToolbarButton } from '../ToolbarButton'; | ||
import { TOOLBAR_BUTTON_WIDTH } from '../../constants'; | ||
|
||
export const StyledTabbar = styled.div` | ||
height: 100%; | ||
width: 100%; | ||
position: relative; | ||
overflow: hidden; | ||
transition: 0.3s opacity, 0.3s transform; | ||
margin-right: 32px; | ||
display: flex; | ||
`; | ||
|
||
export const TabsContainer = styled.div` | ||
height: 100%; | ||
width: calc(100% - ${TOOLBAR_BUTTON_WIDTH}px); | ||
position: relative; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
display: flex; | ||
align-items: center; | ||
`; | ||
|
||
export const AddTab = styled(ToolbarButton)` | ||
position: absolute; | ||
left: 0; | ||
`; |
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,8 +1,9 @@ | ||
export const icons = { | ||
close: require('~/shared/resources/icons/close.svg'), | ||
dropWindow: require('~/shared/resources/icons/drop-window.svg'), | ||
download: require('~/shared/resources/icons/download.svg'), | ||
theme: require('~/shared/resources/icons/theme.svg'), | ||
more: require('~/shared/resources/icons/more.svg'), | ||
photo: require('~/shared/resources/icons/photo.svg'), | ||
}; | ||
export const icons = { | ||
close: require('~/shared/resources/icons/close.svg'), | ||
add: require('~/shared/resources/icons/add.svg'), | ||
dropWindow: require('~/shared/resources/icons/drop-window.svg'), | ||
download: require('~/shared/resources/icons/download.svg'), | ||
theme: require('~/shared/resources/icons/theme.svg'), | ||
more: require('~/shared/resources/icons/more.svg'), | ||
photo: require('~/shared/resources/icons/photo.svg'), | ||
}; |
Oops, something went wrong.