From 1a5c143a000d65a42111b8f681c5b608b0983027 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 3 Nov 2022 15:39:11 +0100 Subject: [PATCH] [FIX] runbot_merge: make timestamps and batch labels selectable In the branch lists of stagings, the timestamps in the left column and the labels in the data cells can not be selected, because they're buttons and anyway bootstrap explicitly sets .btn { ... user-select: none; } This can be frustrating, as timestamps and labels are useful information to cross-reference, the ability to copy them is convenient. Custom-set the reverse via our own CSS. Fixes #668 --- runbot_merge/changelog/2022-10/labels.md | 5 +++++ runbot_merge/static/scss/runbot_merge.scss | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 runbot_merge/changelog/2022-10/labels.md diff --git a/runbot_merge/changelog/2022-10/labels.md b/runbot_merge/changelog/2022-10/labels.md new file mode 100644 index 00000000..51530fad --- /dev/null +++ b/runbot_merge/changelog/2022-10/labels.md @@ -0,0 +1,5 @@ +IMP: make timestamps and batch labels selectable + +In the list of stagings for a branch, the timestamps and batch labels were not +selectable, which was inconvenent for cross-referencing and copy/pasting. They +should now be selectable. diff --git a/runbot_merge/static/scss/runbot_merge.scss b/runbot_merge/static/scss/runbot_merge.scss index 11ed66f4..2b98cf32 100644 --- a/runbot_merge/static/scss/runbot_merge.scss +++ b/runbot_merge/static/scss/runbot_merge.scss @@ -45,6 +45,10 @@ h5 { font-size: 1em; } display: inline-block; } +.btn { + user-select: text; +} + // mergebot layouting .stagings { display: flex;