Skip to content

Commit

Permalink
Merge pull request #445 from vyacheslav-pv/update-snippet
Browse files Browse the repository at this point in the history
[#407] Update the snippet toolbar view
  • Loading branch information
fey authored Mar 27, 2024
2 parents dfc4130 + 8bd757c commit cdbc79b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions frontend/src/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ $dropdown-padding-y: 0.25rem;

@import "./max-w";

@import "./min-w";

@import "bootstrap/scss/root";
@import "bootstrap/scss/reboot";

Expand Down
10 changes: 10 additions & 0 deletions frontend/src/assets/stylesheets/min-w.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$utilities: map-merge(
$utilities,
(
"min-width": (
property: min-width,
class: min-w,
values: (150: 9.375rem),
),
)
);
4 changes: 2 additions & 2 deletions frontend/src/pages/snippet/FileToolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function SnippetName({ snippet }) {
ref={inputRef}
as={AutowidthInput}
autoComplete="off"
className="transition-padding w-auto"
className="transition-padding"
id="name"
isInvalid={!!formik.errors.name}
maxLength={30}
Expand All @@ -104,7 +104,7 @@ function SnippetName({ snippet }) {
value={formik.values.name}
/>
<Form.Control.Feedback
className={formik.errors.name && 'd-block'}
className={formik.errors.name && 'd-block min-w-150'}
tooltip
type="invalid"
>
Expand Down

0 comments on commit cdbc79b

Please sign in to comment.