Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
c1340da4
Commit
c1340da4
authored
5 years ago
by
hansen
Committed by
Kyle Doherty
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Navbar tweaks (#10605)
* Navbar small screen friendly. And dirty-fix WriteSQL tooltip. * Simplify
parent
fc60d633
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/metabase/nav/containers/Navbar.jsx
+11
-11
11 additions, 11 deletions
frontend/src/metabase/nav/containers/Navbar.jsx
with
11 additions
and
11 deletions
frontend/src/metabase/nav/containers/Navbar.jsx
+
11
−
11
View file @
c1340da4
...
...
@@ -72,7 +72,7 @@ const SearchWrapper = Flex.extend`
background-color:
${
props
=>
props
.
active
?
ActiveSearchColor
:
DefaultSearchColor
}
;
border-radius: 6px;
flex: 1
0
auto;
flex: 1
1
auto;
max-width: 50em;
align-items: center;
color: white;
...
...
@@ -84,6 +84,7 @@ const SearchWrapper = Flex.extend`
const
SearchInput
=
styled
.
input
`
${
space
}
background-color: transparent;
width: 100%;
border: none;
color: white;
font-size: 1em;
...
...
@@ -359,16 +360,15 @@ export default class Navbar extends Component {
]
}
/>
{
hasNativeWrite
&&
(
<
Link
to
=
{
this
.
props
.
plainNativeQuery
.
question
().
getUrl
()
}
mx
=
{
1
}
className
=
"hide sm-show flex-no-shrink"
data-metabase-event
=
{
`NavBar;SQL`
}
>
<
IconWrapper
>
<
Icon
size
=
{
19
}
name
=
"sql"
tooltip
=
{
t
`Write SQL`
}
/>
</
IconWrapper
>
</
Link
>
<
IconWrapper
className
=
"relative hide sm-show mr1 overflow-hidden"
>
<
Link
to
=
{
this
.
props
.
plainNativeQuery
.
question
().
getUrl
()
}
className
=
"flex align-center"
data-metabase-event
=
{
`NavBar;SQL`
}
>
<
Icon
size
=
{
18
}
p
=
{
"
11px
"
}
name
=
"sql"
tooltip
=
{
t
`Write SQL`
}
/>
</
Link
>
</
IconWrapper
>
)
}
<
ProfileLink
{
...
this
.
props
}
/>
</
Flex
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment