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
f9358144
Commit
f9358144
authored
8 years ago
by
Lewis Liu
Browse files
Options
Downloads
Patches
Plain Diff
Added style for details editor textarea
parent
4679d48f
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/metabase/components/Item.jsx
+6
-1
6 additions, 1 deletion
frontend/src/metabase/components/Item.jsx
frontend/src/metabase/components/List.css
+18
-5
18 additions, 5 deletions
frontend/src/metabase/components/List.css
with
24 additions
and
6 deletions
frontend/src/metabase/components/Item.jsx
+
6
−
1
View file @
f9358144
...
...
@@ -23,7 +23,12 @@ const Item = ({ id, name, description, placeholder, url, icon, isEditing, field
</
div
>
<
div
className
=
{
cx
(
S
.
itemSubtitle
,
{
"
mt1
"
:
true
})
}
>
{
isEditing
?
<
textarea
placeholder
=
{
placeholder
}
{
...
field
}
defaultValue
=
{
description
}
/>
:
<
textarea
className
=
{
S
.
itemTextArea
}
placeholder
=
{
placeholder
}
{
...
field
}
defaultValue
=
{
description
}
/>
:
description
||
placeholder
||
'
No description yet
'
}
</
div
>
...
...
This diff is collapsed.
Click to expand it.
frontend/src/metabase/components/List.css
+
18
−
5
View file @
f9358144
/*TODO: read up more about css modules and find out why it was done this way*/
/*@import '../Questions.css';*/
:root
{
--title-color
:
#606E7B
;
--subtitle-color
:
#AAB7C3
;
...
...
@@ -23,13 +21,19 @@
}
:local
(
.header
)
{
/*composes: header from "../Questions.css";*/
composes
:
mt4
mb2
from
"style"
;
color
:
var
(
--title-color
);
font-size
:
24px
;
}
:local
(
.headerLink
)
{
}
:local
(
.headerButton
)
{
}
:local
(
.empty
)
{
composes
:
flex
align-center
justify-center
from
"style"
;
composes
:
full
from
"style"
;
...
...
@@ -60,7 +64,7 @@
composes
:
inline-block
from
"style"
;
}
:local
(
.itemName
)
:hover
{
:local
(
a
.itemName
)
:hover
{
color
:
var
(
--blue-color
);
}
...
...
@@ -73,6 +77,15 @@
color
:
var
(
--title-color
);
}
:local
(
.itemTextArea
)
{
resize
:
none
;
padding
:
20px
;
font-size
:
14px
;
width
:
100%
;
min-height
:
100px
;
border-color
:
var
(
--subtitle-color
);
}
:local
(
.icons
)
{
composes
:
flex
flex-row
align-center
from
"style"
;
}
...
...
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