Skip to content

Instantly share code, notes, and snippets.

View jigmeloday's full-sized avatar
🇧🇹
Bhutan

Jigme Lodey jigmeloday

🇧🇹
Bhutan
View GitHub Profile
@jigmeloday
jigmeloday / RecipientsDisplay.svelte
Created August 18, 2022 12:58
This is RecipientsDisplay code using svelte. I have commented some information about my codes. refresh once if view is not working while checking responsive from laptop.
<script lang="ts">
import { tick, onMount } from 'svelte';
export let recipients
let recipientDisplayList = [];
let innerWidth = 0;//Inner width is the width of email container width.
let recipientsWidth = 0; //recipientsWidth width is the width of email length.
let recipentsWidthSum = 0; // recipientsWidthSum is the total width of recipientsWidth
let lengths = 0;
onMount( async () => {
for ( let recipient of recipients ) {
<script lang="ts">
import { tick, onMount } from 'svelte';
export let recipients
let recipientDisplayList = [];
let innerWidth = 0;
let recipientsWidth = 0;
let recipentsWidthSum = 0;
let lengths = 0;
onMount( async () => {
for ( let recipient of recipients ) {