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
6afe5a44
Unverified
Commit
6afe5a44
authored
6 years ago
by
Kyle Doherty
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
responsive data browser (#8041)
parent
4bf48cbe
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/metabase/components/BrowseApp.jsx
+7
-4
7 additions, 4 deletions
frontend/src/metabase/components/BrowseApp.jsx
with
7 additions
and
4 deletions
frontend/src/metabase/components/BrowseApp.jsx
+
7
−
4
View file @
6afe5a44
...
...
@@ -21,6 +21,9 @@ export const DatabaseListLoader = props => (
<
EntityListLoader
entityType
=
"databases"
{
...
props
}
/>
);
const
PAGE_PADDING
=
[
1
,
2
,
4
];
const
ITEM_WIDTHS
=
[
1
,
1
/
2
,
1
/
3
];
const
SchemaListLoader
=
({
dbId
,
...
props
})
=>
(
<
EntityListLoader
entityType
=
"schemas"
entityQuery
=
{
{
dbId
}
}
{
...
props
}
/>
);
...
...
@@ -63,7 +66,7 @@ export class SchemaBrowser extends React.Component {
</
Box
>
<
Grid
>
{
schemas
.
map
(
schema
=>
(
<
GridItem
w
=
{
1
/
3
}
>
<
GridItem
w
=
{
ITEM_WIDTHS
}
>
<
Link
to
=
{
`/browse/
${
dbId
}
/schema/
${
schema
.
name
}
`
}
mb
=
{
1
}
...
...
@@ -121,7 +124,7 @@ export class TableBrowser extends React.Component {
}).
getUrl
();
return
(
<
GridItem
w
=
{
1
/
3
}
>
<
GridItem
w
=
{
ITEM_WIDTHS
}
>
<
Card
hoverable
px
=
{
1
}
...
...
@@ -183,7 +186,7 @@ export class TableBrowser extends React.Component {
export
class
BrowseApp
extends
React
.
Component
{
render
()
{
return
<
Box
mx
=
{
4
}
>
{
this
.
props
.
children
}
</
Box
>;
return
<
Box
mx
=
{
PAGE_PADDING
}
>
{
this
.
props
.
children
}
</
Box
>;
}
}
...
...
@@ -199,7 +202,7 @@ export class DatabaseBrowser extends React.Component {
return
(
<
Grid
>
{
databases
.
map
(
database
=>
(
<
GridItem
>
<
GridItem
w
=
{
ITEM_WIDTHS
}
>
<
Link
to
=
{
`browse/
${
database
.
id
}
`
}
>
<
Card
p
=
{
3
}
hover
=
{
{
color
:
normal
.
blue
}
}
>
<
Icon
name
=
"database"
color
=
{
normal
.
grey2
}
mb
=
{
3
}
/>
...
...
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