Skip to content

Commit

Permalink
extracted common css for image-input-preview component
Browse files Browse the repository at this point in the history
  • Loading branch information
papandrk committed Nov 13, 2024
1 parent 769a203 commit 7160029
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 28 deletions.
13 changes: 13 additions & 0 deletions resources/assets/sass/common/image-input-preview.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.input-file-wrapper {
overflow: hidden;
}

.image-preview-container {
text-align: center;

.selected-image-preview {
max-height: 200px;
max-width: 100%;
padding: 20px 0;
}
}
15 changes: 1 addition & 14 deletions resources/assets/sass/project/create-edit-project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,7 @@
@import "bs-stepper/dist/css/bs-stepper.min.css";
@import "../variables";
@import "../select2-custom";

.input-file-wrapper {
overflow: hidden;
}

.image-preview-container {
text-align: center;

.selected-image-preview {
max-height: 200px;
max-width: 100%;
padding: 20px 0;
}
}
@import "../common/image-input-preview.scss";

.box {
.row {
Expand Down
15 changes: 1 addition & 14 deletions resources/assets/sass/project/problem/create-edit-problem.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
@import "../../variables";

.input-file-wrapper {
overflow: hidden;
}

.image-preview-container {
text-align: center;

.selected-image-preview {
max-height: 200px;
max-width: 100%;
padding: 20px 0;
}
}
@import "../../common/image-input-preview.scss";

0 comments on commit 7160029

Please sign in to comment.