/*
 * Filerobot sizes itself to 100% of the element it is rendered into, while that element sits in a
 * dialog and would otherwise take its height from its content: without a height of its own the
 * editor collapses to nothing. The viewport unit keeps the dialog on screen on a laptop or tablet,
 * the cap keeps the canvas from stretching past what is still workable on a tall screen.
 */
.image-editor {
    height: min(80vh, 900px);
}

/*
 * Which tools a tab holds is fixed by the bundle: only whole tabs can be left out, through the
 * tabsIds of the image editor controller. Leaving out a single tool is therefore a matter of not
 * drawing its button, which puts the options that come with it out of reach as well. Every tool
 * button carries a class of its own, named after the tool, so the same works for any other one.
 * A tool left out here may not be the defaultToolId of the controller, as the tools bar then opens
 * on a selection that can no longer be changed.
 */
.image-editor .FIE_text-tool-button,
.image-editor .FIE_image-tool-button,
.image-editor .FIE_polygon-tool-button,
.image-editor .FIE_flip-x-tool-button,
.image-editor .FIE_flip-y-tool-button {
    display: none;
}

/*
 * Every annotate tool carries the same row of extra options, each behind a little button of its
 * own: opacity, stroke, shadow and the position fields. The bundle only leaves stroke and shadow
 * out together, and only when the editor is switched over to cloudimage, so the shadow one is taken
 * out here. Those buttons share a single class and are told apart by their tooltip, which holds the
 * editor's own label. That key is left out of our translation map on purpose, so the tooltip stays
 * the English "Shadow" this selector matches. With the button gone there is no way left to reach
 * the shadow fields, and the editor leaves a new annotation without a shadow to begin with.
 */
.image-editor .FIE_annotation-option-triggerer[title="Shadow"] {
    display: none;
}
