Merge pull request #327 from pateljannat/image-in-lesson-webform

feat: image markdown extension
This commit is contained in:
Jannat Patel
2022-04-25 11:42:58 +05:30
committed by GitHub
5 changed files with 136 additions and 17 deletions

View File

@@ -1414,3 +1414,32 @@ pre {
.btn-outline-primary {
border: 1px solid var(--primary-color);
}
.show-attachments {
padding-right: 0.5rem;
display: flex;
align-items: center;
}
.attachment-controls {
display: flex;
align-items: center;
width: fit-content;
cursor: pointer;
}
.attachments {
flex-direction: column;
padding: 0.5rem 0;
margin-top: 1rem;
position: absolute;
z-index: 1;
width: fit-content;
border-collapse: separate;
border-spacing: 1rem 0.5rem;
}
.attachments-parent {
float: right;
font-size: var(--text-sm);
}

View File

@@ -28,4 +28,17 @@
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" id="icon-upload" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899
4.41015 14.5 8 14.5Z" stroke="#505A62" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M8 4.75V11.1351" stroke="#505A62" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M5.29102 7.45833L7.99935 4.75L10.7077 7.45833" stroke="#505A62" stroke-miterlimit="10" stroke-linecap="round"
stroke-linejoin="round"/>
</svg>
<svg width="14" height="14" id="icon-attachment" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.6004 6.68841L7.6414 11.5616C6.23259 12.946 3.8658 12.946 2.45699 11.5616C1.04819 10.1772
1.04819 7.85132 2.45699 6.4669L6.85247 2.14749C7.86681 1.15071 9.44467 1.15071 10.459 2.14749C11.4733
3.14428 11.4733 4.69483 10.459 5.69162L6.40165 9.62339C5.83813 10.1772 4.93649 10.1772 4.42932 9.62339C3.8658
9.06962 3.8658 8.18359 4.42932 7.68519L7.81045 4.36257" stroke="#2D95F0" stroke-miterlimit="10" stroke-linecap="round"/>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 10 KiB