<commit_before>/*
Copyright 2019, 2020 The Matrix.org Foundation C.I.C.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

.mx_InviteDialog_addressBar {
    display: flex;
    flex-direction: row;

    .mx_InviteDialog_editor {
        flex: 1;
        width: 100%; // Needed to make the Field inside grow
        background-color: $user-tile-hover-bg-color;
        border-radius: 4px;
        min-height: 25px;
        padding-left: 8px;
        overflow-x: hidden;
        overflow-y: auto;

        .mx_InviteDialog_userTile {
            display: inline-block;
            float: left;
            position: relative;
            top: 7px;
        }

        // Using a textarea for this element, to circumvent autofill
        // Mostly copied from AddressPickerDialog
        textarea,
        textarea:focus {
            height: 34px;
            line-height: 34px;
            font-size: 14px;
            padding-left: 12px;
            margin: 0 !important;
            border: 0 !important;
            outline: 0 !important;
            resize: none;
            overflow: hidden;
            box-sizing: border-box;
            word-wrap: nowrap;

            // Roughly fill about 2/5ths of the available space. This is to try and 'fill' the
            // remaining space after a bunch of pills, but is a bit hacky. Ideally we'd have
            // support for "fill remaining width", but traditional tricks don't work with what
            // we're pushing into this "field". Flexbox just makes things worse. The theory is
            // that users won't need more than about 2/5ths of the input to find the person
            // they're looking for.
            width: 40%;
        }
    }

    .mx_InviteDialog_goButton {
        width: 48px;
        margin-left: 10px;
        height: 25px;
        line-height: 25px;
    }

    .mx_InviteDialog_buttonAndSpinner {
        .mx_Spinner {
            // Width and height are required to trick the layout engine.
            width: 20px;
            height: 20px;
            margin-left: 5px;
            display: inline-block;
            vertical-align: middle;
        }
    }
}

.mx_InviteDialog_section {
    padding-bottom: 10px;

    h3 {
        font-size: 12px;
        color: $muted-fg-color;
        font-weight: bold;
        text-transform: uppercase;
    }
}

.mx_InviteDialog_roomTile {
    cursor: pointer;
    padding: 5px 10px;

    &:hover {
        background-color: $user-tile-hover-bg-color;
        border-radius: 4px;
    }

    * {
        vertical-align: middle;
    }

    .mx_InviteDialog_roomTile_avatarStack {
        display: inline-block;
        position: relative;
        width: 36px;
        height: 36px;

        & > * {
            position: absolute;
            top: 0;
            left: 0;
        }
    }

    .mx_InviteDialog_roomTile_selected {
        width: 36px;
        height: 36px;
        border-radius: 36px;
        background-color: $username-variant1-color;
        display: inline-block;
        position: relative;

        &::before {
            content: "";
            width: 24px;
            height: 24px;
            grid-column: 1;
            grid-row: 1;
            mask-image: url('$(res)/img/feather-customised/check.svg');
            mask-size: 100%;
            mask-repeat: no-repeat;
            position: absolute;
            top: 6px; // 50%
            left: 6px; // 50%
            background-color: #ffffff; // this is fine without a var because it's for both themes
        }
    }

    .mx_InviteDialog_roomTile_name {
        font-weight: 600;
        font-size: 14px;
        color: $primary-fg-color;
        margin-left: 7px;
    }

    .mx_InviteDialog_roomTile_userId {
        font-size: 12px;
        color: $muted-fg-color;<commit_msg>the width was not properly set to other languages than english, a min-width will keep the proper size of the button while leaving some room for more word expensive languages such as french<commit_after>/*
Copyright 2019, 2020 The Matrix.org Foundation C.I.C.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

.mx_InviteDialog_addressBar {
    display: flex;
    flex-direction: row;

    .mx_InviteDialog_editor {
        flex: 1;
        width: 100%; // Needed to make the Field inside grow
        background-color: $user-tile-hover-bg-color;
        border-radius: 4px;
        min-height: 25px;
        padding-left: 8px;
        overflow-x: hidden;
        overflow-y: auto;

        .mx_InviteDialog_userTile {
            display: inline-block;
            float: left;
            position: relative;
            top: 7px;
        }

        // Using a textarea for this element, to circumvent autofill
        // Mostly copied from AddressPickerDialog
        textarea,
        textarea:focus {
            height: 34px;
            line-height: 34px;
            font-size: 14px;
            padding-left: 12px;
            margin: 0 !important;
            border: 0 !important;
            outline: 0 !important;
            resize: none;
            overflow: hidden;
            box-sizing: border-box;
            word-wrap: nowrap;

            // Roughly fill about 2/5ths of the available space. This is to try and 'fill' the
            // remaining space after a bunch of pills, but is a bit hacky. Ideally we'd have
            // support for "fill remaining width", but traditional tricks don't work with what
            // we're pushing into this "field". Flexbox just makes things worse. The theory is
            // that users won't need more than about 2/5ths of the input to find the person
            // they're looking for.
            width: 40%;
        }
    }

    .mx_InviteDialog_goButton {
        min-width: 48px;
        margin-left: 10px;
        height: 25px;
        line-height: 25px;
    }

    .mx_InviteDialog_buttonAndSpinner {
        .mx_Spinner {
            // Width and height are required to trick the layout engine.
            width: 20px;
            height: 20px;
            margin-left: 5px;
            display: inline-block;
            vertical-align: middle;
        }
    }
}

.mx_InviteDialog_section {
    padding-bottom: 10px;

    h3 {
        font-size: 12px;
        color: $muted-fg-color;
        font-weight: bold;
        text-transform: uppercase;
    }
}

.mx_InviteDialog_roomTile {
    cursor: pointer;
    padding: 5px 10px;

    &:hover {
        background-color: $user-tile-hover-bg-color;
        border-radius: 4px;
    }

    * {
        vertical-align: middle;
    }

    .mx_InviteDialog_roomTile_avatarStack {
        display: inline-block;
        position: relative;
        width: 36px;
        height: 36px;

        & > * {
            position: absolute;
            top: 0;
            left: 0;
        }
    }

    .mx_InviteDialog_roomTile_selected {
        width: 36px;
        height: 36px;
        border-radius: 36px;
        background-color: $username-variant1-color;
        display: inline-block;
        position: relative;

        &::before {
            content: "";
            width: 24px;
            height: 24px;
            grid-column: 1;
            grid-row: 1;
            mask-image: url("$(res)/img/feather-customised/check.svg");
            mask-size: 100%;
            mask-repeat: no-repeat;
            position: absolute;
            top: 6px; // 50%
            left: 6px; // 50%
            background-color: #ffffff; // this is fine without a var because it's for both themes
        }
    }

    .mx_InviteDialog_roomTile_name {
        font-weight: 600;
        font-size: 14px;
        color: $primary-fg-color;
        margin-left: 7px;
    }

    .mx_InviteDialog_roomTile_userId {
        font-size: 12px;
        color: $muted-fg-color;
{'fraction_non_alphanumeric': 0.08740978348035285, 'fraction_numerical': 0.021995646694924962, 'mean_word_length': 1.744419993712669, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6258189', 'n_tokens_mistral': 2694, 'n_tokens_neox': 2443, 'n_words': 779}