Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
indiscale-files-ui-react
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
indiscale-files-ui-react
Commits
49802c72
Commit
49802c72
authored
2 years ago
by
Jose Manuel Serrano Amaut
Browse files
Options
Downloads
Patches
Plain Diff
[REF]: Impove styling sample code
parent
3af20150
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
src/components/demo-components/dropzone-demo/CodeDropzoneDemoStyling.jsx
+18
-21
18 additions, 21 deletions
...demo-components/dropzone-demo/CodeDropzoneDemoStyling.jsx
with
18 additions
and
21 deletions
src/components/demo-components/dropzone-demo/CodeDropzoneDemoStyling.jsx
+
18
−
21
View file @
49802c72
...
...
@@ -20,12 +20,12 @@ const splittedCodeJS = `<Dropzone color="#6200EE">{/** files */}</Dropzone>
header={false}
footer={false}
>
{/** files */}
{/** files */}
</Dropzone>
<Dropzone
background="radial-gradient(circle at 18.7% 37.8%, rgb(250, 250, 250) 0%, rgb(225, 234, 238) 90%);"
>
{/** files */}
{/** files */}
</Dropzone>`
;
const
splittedCodeTS
=
`<Dropzone color="#6200EE">{/** files */}</Dropzone>
<Dropzone
...
...
@@ -33,12 +33,12 @@ const splittedCodeTS = `<Dropzone color="#6200EE">{/** files */}</Dropzone>
header={false}
footer={false}
>
{/** files */}
{/** files */}
</Dropzone>
<Dropzone
background="radial-gradient(circle at 18.7% 37.8%, rgb(250, 250, 250) 0%, rgb(225, 234, 238) 90%);"
>
{/** files */}
{/** files */}
</Dropzone>`
;
const
completeCodeJS
=
`import * as React from "react";
import { Dropzone } from "@files-ui/react";
...
...
@@ -60,7 +60,7 @@ export default function App() {
value={files}
color="#6200EE"
>
{/** Files*/}
{/** Files*/}
</Dropzone>
<Dropzone
style={{ width: "300px" }}
...
...
@@ -68,13 +68,13 @@ export default function App() {
header={false}
footer={false}
>
{/** Files*/}
{/** Files*/}
</Dropzone>
<Dropzone
style={{ width: "300px" }}
background="radial-gradient(circle at 18.7% 37.8%, rgb(250, 250, 250) 0%, rgb(225, 234, 238) 90%);"
>
{/** Files*/}
{/** Files*/}
</Dropzone>
</div>
);
...
...
@@ -107,26 +107,23 @@ export default function App() {
style={{ width: "300px" }}
color="#6200EE"
>
{/** Files*/}
{/** Files*/}
</Dropzone>
<Dropzone
style={{ width: "300px" }}
minHeight="120px"
header={false}
footer={false}
style={{ width: "300px" }}
minHeight="120px"
header={false}
footer={false}
>
{/** Files*/}
{/** Files*/}
</Dropzone>
<Dropzone
style={{ width: "300px" }}
onChange={updateFiles}
value={files}
background="radial-gradient(circle at 18.7% 37.8%, rgb(250, 250, 250) 0%, rgb(225, 234, 238) 90%);"
style={{ width: "300px" }}
onChange={updateFiles}
value={files}
background="radial-gradient(circle at 18.7% 37.8%, rgb(250, 250, 250) 0%, rgb(225, 234, 238) 90%);"
>
{files.length > 0 &&
files.map((file: ExtFile) => (
<FileMosaic key={file.id} {...file} onDelete={removeFile} info />
))}
{/** Files*/}
</Dropzone>
</div>
);
...
...
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