Add broken URI handling
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,9 +1,35 @@
|
||||
const getFlashListItemHeight = (numColumns: number) => {
|
||||
const A = 500;
|
||||
const B = 300;
|
||||
const C = 1;
|
||||
const height = A - B * Math.log(numColumns + C);
|
||||
return Math.max(Math.round(height), 0);
|
||||
switch (numColumns) {
|
||||
case 1: {
|
||||
return 350;
|
||||
}
|
||||
case 2: {
|
||||
return 180;
|
||||
}
|
||||
case 3: {
|
||||
return 120;
|
||||
}
|
||||
case 4: {
|
||||
return 90;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export { getFlashListItemHeight };
|
||||
const getFontAwesome5IconSize = (numColumns: number) => {
|
||||
switch (numColumns) {
|
||||
case 1: {
|
||||
return 40;
|
||||
}
|
||||
case 2: {
|
||||
return 30;
|
||||
}
|
||||
case 3: {
|
||||
return 20;
|
||||
}
|
||||
case 4: {
|
||||
return 14;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export { getFlashListItemHeight, getFontAwesome5IconSize };
|
||||
|
Reference in New Issue
Block a user