chore: remove less

This commit is contained in:
steven
2022-09-29 22:59:58 +08:00
parent 19c735261f
commit 8a1d7c4646
7 changed files with 24 additions and 157 deletions

View File

@@ -58,7 +58,7 @@ const ShortcutListView: React.FC<Props> = (props: Props) => {
<span className="text-gray-400 text-sm ml-2">({shortcut.description})</span>
</div>
<div className="flex flex-row justify-end items-center">
<span className=" w-12 mr-2 text-gray-600">{shortcut.creator.name}</span>
<span className="w-16 truncate mr-2 text-gray-600">{shortcut.creator.name}</span>
<button
className="cursor-pointer mr-4 hover:opacity-80"
onClick={() => {

View File

@@ -1,6 +1,6 @@
import { useEffect } from "react";
import { createRoot, Root } from "react-dom/client";
import "../less/toast.less";
import "../css/toast.css";
type ToastType = "normal" | "success" | "info" | "error";
@@ -30,7 +30,7 @@ const Toast: React.FC<ToastItemProps> = (props: ToastItemProps) => {
return (
<div className="toast-container" onClick={destory}>
<p className="content-text">{props.content}</p>
<p className="text-sm whitespace-pre-wrap break-words leading-6 max-w-xs">{props.content}</p>
</div>
);
};