|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
420 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @typedef {Object} SpacerProps
|
|---|
| 3 | * @property {string} space
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | /**
|
|---|
| 7 | * An empty element to add spacing manually.
|
|---|
| 8 | * @param {Document} document
|
|---|
| 9 | * @param {HTMLElement} root
|
|---|
| 10 | * @param {SpacerProps} props
|
|---|
| 11 | * @returns {void}
|
|---|
| 12 | */
|
|---|
| 13 | function Spacer(document, root, props) {
|
|---|
| 14 | const spacer = document.createElement('div');
|
|---|
| 15 | spacer.style.paddingBottom = props.space;
|
|---|
| 16 | root.appendChild(spacer);
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | module.exports = Spacer;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.