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
2ed20b47
Commit
2ed20b47
authored
9 years ago
by
Tom Robinson
Browse files
Options
Downloads
Patches
Plain Diff
Remove flexbox on dashboard grid to workaround Chrome 48.0.2564.97 bug
parent
bbfdf23f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/dashboard/components/Dashboard.jsx
+2
-2
2 additions, 2 deletions
frontend/src/dashboard/components/Dashboard.jsx
frontend/src/dashboard/components/DashboardGrid.jsx
+1
-1
1 addition, 1 deletion
frontend/src/dashboard/components/DashboardGrid.jsx
with
3 additions
and
3 deletions
frontend/src/dashboard/components/Dashboard.jsx
+
2
−
2
View file @
2ed20b47
...
...
@@ -42,9 +42,9 @@ export default class Dashboard extends Component {
<
header
className
=
"bg-white border-bottom"
>
<
DashboardHeader
{
...
this
.
props
}
/>
</
header
>
<
div
className
=
"Dash-wrapper wrapper flex
layout-centered flex-full flex-column
"
>
<
div
className
=
"Dash-wrapper wrapper flex
-full
"
>
{
dashboard
.
ordered_cards
.
length
===
0
?
<
div
className
=
"flex flex-column layout-centered"
>
<
div
className
=
"
absolute top bottom left right
flex flex-column layout-centered"
>
<
span
className
=
"QuestionCircle"
>
?
</
span
>
<
div
className
=
"text-normal mt3 mb1"
>
This dashboard is looking empty.
</
div
>
<
div
className
=
"text-normal text-grey-2"
>
Add a question to start making it useful!
</
div
>
...
...
This diff is collapsed.
Click to expand it.
frontend/src/dashboard/components/DashboardGrid.jsx
+
1
−
1
View file @
2ed20b47
...
...
@@ -148,7 +148,7 @@ export default class DashboardGrid extends Component {
render
()
{
var
{
dashboard
}
=
this
.
props
;
return
(
<
div
className
=
"flex-full full"
>
<
div
>
<
ResponsiveReactGridLayout
className
=
{
cx
(
"
DashboardGrid
"
,
{
"
Dash--editing
"
:
this
.
props
.
isEditing
,
"
Dash--dragging
"
:
this
.
state
.
isDragging
})
}
breakpoints
=
{
{
lg
:
753
,
sm
:
752
}
}
...
...
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