chore: change pages icon (#894)

This commit is contained in:
Aaryan Khandelwal 2023-04-20 12:09:48 +05:30 committed by GitHub
parent d30a88832a
commit 7149d20601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View File

@ -49,10 +49,10 @@ export const SinglePageDetailedItem: React.FC<TSingleStatProps> = ({
return (
<div className="relative">
<Link href={`/${workspaceSlug}/projects/${projectId}/pages/${page.id}`}>
<a className="block py-4 px-6">
<a className="block p-4">
<div className="flex items-center justify-between gap-2">
<div className="flex items-center gap-2">
<p className="mr-2 truncate text-xl font-semibold">{truncateText(page.name, 75)}</p>
<p className="mr-2 truncate font-medium">{truncateText(page.name, 75)}</p>
{page.label_details.length > 0 &&
page.label_details.map((label) => (
<div

View File

@ -1,7 +1,5 @@
import React from "react";
import useSWR from "swr";
import Link from "next/link";
import { useRouter } from "next/router";
@ -11,13 +9,14 @@ import useUser from "hooks/use-user";
import { CustomMenu, Tooltip } from "components/ui";
// icons
import {
DocumentTextIcon,
LockClosedIcon,
LockOpenIcon,
PencilIcon,
StarIcon,
TrashIcon,
} from "@heroicons/react/24/outline";
import { ExclamationIcon, PencilScribbleIcon } from "components/icons";
import { ExclamationIcon } from "components/icons";
// helpers
import { truncateText } from "helpers/string.helper";
import { renderLongDateFormat, renderShortDate, renderShortTime } from "helpers/date-time.helper";
@ -54,9 +53,9 @@ export const SinglePageListItem: React.FC<TSingleStatProps> = ({
<a>
<div className="relative rounded p-4 hover:bg-gray-200">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2 flex-wrap">
<PencilScribbleIcon className="h-4 w-4" />
<p className="mr-2 truncate text-base text-gray-800 font-medium">
<div className="flex flex-wrap items-center gap-2">
<DocumentTextIcon className="h-4 w-4" />
<p className="mr-2 truncate text-base font-medium text-gray-800">
{truncateText(page.name, 75)}
</p>
{page.label_details.length > 0 &&