Fixed broken short URLs table when creating short URL with too long slug

This commit is contained in:
Alejandro Celaya
2022-11-25 18:34:21 +01:00
parent e368e618f3
commit b79dced185
5 changed files with 40 additions and 13 deletions

View File

@@ -27,7 +27,7 @@ export const useTimeoutToggle = (
return [flag, callback];
};
type ToggleResult = [ boolean, () => void, () => void, () => void ];
type ToggleResult = [boolean, () => void, () => void, () => void];
export const useToggle = (initialValue = false): ToggleResult => {
const [flag, setFlag] = useState<boolean>(initialValue);

View File

@@ -0,0 +1,5 @@
@mixin text-ellipsis() {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}