From c9fd598c9cf7d9080489c95d62ec5be2c5c1fe40 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 29 May 2022 02:05:42 +0300 Subject: [PATCH] heightmapSelect - make default select element non-clickable --- index.html | 6 +++--- modules/dynamic/heightmap-selection.js | 24 ++++++++++++++++-------- modules/ui/options.js | 2 +- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index c3ef5ab1..a435d974 100644 --- a/index.html +++ b/index.html @@ -1318,13 +1318,13 @@ - + Heightmap - - + + diff --git a/modules/dynamic/heightmap-selection.js b/modules/dynamic/heightmap-selection.js index 15f62ce4..0942c12c 100644 --- a/modules/dynamic/heightmap-selection.js +++ b/modules/dynamic/heightmap-selection.js @@ -69,13 +69,18 @@ function appendStyleSheet() { .heightmap-selection_options { display: grid; grid-template-columns: 2fr 1fr; - justify-items: start; } .heightmap-selection_options > div:first-child { display: grid; - grid-template-columns: 1fr 1fr; + grid-template-columns: 1fr 1fr 1fr; align-items: center; + justify-self: start; + justify-items: start; + } + + .heightmap-selection_options > div:last-child { + justify-self: end; } .heightmap-selection article { @@ -127,23 +132,27 @@ function appendStyleSheet() { function insertEditorHtml() { const heightmapSelectionHtml = /* html */ `
-
+

Heightmap templates

-
-

Pre-created heightmaps

+
+

Precreated heightmaps

Options

+
- +
-
+
Color scheme