Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
c2161fd0
Unverified
Commit
c2161fd0
authored
Aug 14, 2019
by
Robert Knight
Committed by
GitHub
Aug 14, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1304 from hypothesis/remove-focus-mode-x-button
Remove "X" icon from toggle button in focus mode
parents
47630349
20be7b08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
focused-mode-header.js
src/sidebar/components/focused-mode-header.js
+0
-3
focused-mode-header.scss
src/styles/sidebar/components/focused-mode-header.scss
+1
-5
No files found.
src/sidebar/components/focused-mode-header.js
View file @
c2161fd0
...
@@ -4,8 +4,6 @@ const { createElement } = require('preact');
...
@@ -4,8 +4,6 @@ const { createElement } = require('preact');
const
useStore
=
require
(
'../store/use-store'
);
const
useStore
=
require
(
'../store/use-store'
);
const
SvgIcon
=
require
(
'./svg-icon'
);
/**
/**
* Render a control to interact with any focused "mode" in the sidebar.
* Render a control to interact with any focused "mode" in the sidebar.
* Currently only a user-focus mode is supported but this could be broadened
* Currently only a user-focus mode is supported but this could be broadened
...
@@ -55,7 +53,6 @@ function FocusedModeHeader() {
...
@@ -55,7 +53,6 @@ function FocusedModeHeader() {
<
div
className
=
"focused-mode-header sheet"
>
<
div
className
=
"focused-mode-header sheet"
>
{
filterStatus
}
{
filterStatus
}
<
button
onClick
=
{
toggleFocusedMode
}
className
=
"focused-mode-header__btn"
>
<
button
onClick
=
{
toggleFocusedMode
}
className
=
"focused-mode-header__btn"
>
<
SvgIcon
name
=
"cancel"
className
=
"focused-mode-header__btn-icon"
/>
{
buttonText
}
{
buttonText
}
<
/button
>
<
/button
>
<
/div
>
<
/div
>
...
...
src/styles/sidebar/components/focused-mode-header.scss
View file @
c2161fd0
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
display
:
flex
;
display
:
flex
;
margin-left
:
auto
;
margin-left
:
auto
;
height
:
30px
;
height
:
30px
;
padding-left
:
6
px
;
padding-left
:
10
px
;
padding-right
:
10px
;
padding-right
:
10px
;
background-color
:
$grey-2
;
background-color
:
$grey-2
;
color
:
$grey-5
;
color
:
$grey-5
;
...
@@ -19,10 +19,6 @@
...
@@ -19,10 +19,6 @@
}
}
}
}
&
__btn-icon
{
margin-right
:
3px
;
}
&
__filter-status
{
&
__filter-status
{
font-weight
:
400
;
font-weight
:
400
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment