From 193b493d053177a3d187ff3ba899ecf581d21080 Mon Sep 17 00:00:00 2001 From: Roman Dvornov Date: Mon, 3 Jun 2024 00:36:16 +0200 Subject: [PATCH] Tweak the `source` view to display tabs as 4 spaces --- CHANGELOG.md | 2 +- src/views/text/source.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d80aae8f..2532314a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ - Added additional block into inspector popup to display normalized props when `view.options.props` is specified - Added `overrideProps(obj)` jora helper method which overrides object's values (current) with values from passed `obj` (`#.props` by default) - Modified the `link`, `text`, `text-numeric` and `text-match` views to allow all render props to be passed via config, in addition to data -- Modified the `link` view to allow all render props to be passed via config, in addition to data +- Tweaked the `source` view to display tabs as 4 spaces (`tab-size: 4`) - Added `onClick` option for `badge` views - Removed `hint` option for `badge` views, use `tooltip` option instead - Removed fallback methods for obtaining a `ReadableStream` from a `Blob` diff --git a/src/views/text/source.css b/src/views/text/source.css index 4ab568d3..46816b29 100644 --- a/src/views/text/source.css +++ b/src/views/text/source.css @@ -12,6 +12,7 @@ font-size: 12px; line-height: 1.6; white-space: normal; + tab-size: 4; } .view-source__prelude {