From 3ebab9d4524e2d51632af678a8cf28bb3994aea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tao=20Bojl=C3=A9n?= <2803708-taobojlen@users.noreply.gitlab.com> Date: Sun, 21 Jul 2019 19:56:17 +0000 Subject: [PATCH] make labels larger --- CHANGELOG.md | 4 ++-- frontend/src/components/molecules/Cytoscape.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3d2b2c..dcd16aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - You can now link directly to instances at e.g. /instance/mastodon.social. - Instance details now have a link to the corresponding fediverse.network page. ### Changed +- You no longer have to zoom completely in to see labels. +- Label size is now dependent on the instance size. ### Deprecated ### Removed ### Fixed @@ -26,8 +28,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - To improve performance, instances with no neighbors are no longer shown on the graph. ### Deprecated - The /api/v1 endpoint no longer exists; now there's a new /api. -### Removed -### Fixed ### Security - Spam domains can be blacklisted in the backend crawler's config. - Add basic automated security scanning (using [Sobelow](https://github.com/andmarti1424/sc-im.git) and Gitlab's dependency scanning). diff --git a/frontend/src/components/molecules/Cytoscape.tsx b/frontend/src/components/molecules/Cytoscape.tsx index 6f27aa7..046765e 100644 --- a/frontend/src/components/molecules/Cytoscape.tsx +++ b/frontend/src/components/molecules/Cytoscape.tsx @@ -89,7 +89,7 @@ class Cytoscape extends React.Component { .selector("node[label]") .style({ color: DEFAULT_NODE_COLOR, - "font-size": 50, + "font-size": "mapData(size, 1, 6, 10, 100)", "min-zoomed-font-size": 16 }) .selector(".hidden") // used to hide nodes not in the neighborhood of the selected