Skip to content

Commit

Permalink
Merge pull request #1889 from hypersign-protocol/FYR-22
Browse files Browse the repository at this point in the history
UI changes and small bugs
  • Loading branch information
Raj6939 authored Feb 3, 2023
2 parents 01270ca + 6429b8b commit 6401f80
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 19 deletions.
4 changes: 4 additions & 0 deletions src/assets/css/participant-side-datetime-override.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
width: 100%;
position: static;
}
.datetime-picker__button{
color: rgb(26 26 26 / 90%);;
height: calc(1.5em + 0.75rem + 2px);
}
1 change: 1 addition & 0 deletions src/assets/css/style-override.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
color: rgb(241, 179, 25);
}
.datetime-picker__button{
color: #495057;;
border-radius: 5px;
width: 100%;
background: #fff;
Expand Down
8 changes: 3 additions & 5 deletions src/views/admin/Events.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1019,8 +1019,7 @@ export default {
},
openPreview() {
this.project.actions = this.eventActionList;
// console.log(this.project);
this.project.actions = this.eventActionList;
this.$root.$emit("openPreview");
},
Expand All @@ -1038,15 +1037,14 @@ export default {
this.project.projectName + " copy " + Date.now();
this.project.slug = "";
this.project.investorsCount = 0;
let date = new Date(project.toDate)
let date = new Date()
date.setDate(date.getDate() + 1)
project.toDate = date.toISOString()
}
this.project.fromDate = dayjs(project.fromDate).format(
"YYYY-MM-DD HH:mm:ss"
);
this.project.toDate = dayjs(project.toDate).format("YYYY-MM-DD HH:mm:ss");
this.project.toDate = dayjs(project.toDate).format("YYYY-MM-DD HH:mm:ss");
// CHECK IF TELEGRAM AND TWITTER EXISTS AND UPDATE THE DATA STRUCTURE
this.project.social = {
twitter: {
Expand Down
16 changes: 2 additions & 14 deletions src/views/admin/setting/OrgSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</label>
</div>
<div class="col-lg-4 col-md-4 px-0" style="display:flex;">
<input type="text" placeholder="Aspect ratio 16:9 or 4:3 (Maximum size 400kb)" id="name" :disabled="true" class="form-control w-100" />
<input type="text" placeholder="Maximum size 400kb" id="name" :disabled="true" class="form-control w-100" />
<input type="file" ref="file" accept="image/jpeg, image/png" hidden>

<hf-buttons name="" @executeAction="fileUpload()"
Expand Down Expand Up @@ -248,19 +248,7 @@ export default {
reader.readAsDataURL(chosenFile)
reader.onload=e=>{
dataUrl=e.target.result
let image= new Image()
image.src=dataUrl
image.onload=()=>{
let imageHeight = image.naturalHeight;
let imageWidth = image.naturalWidth;
const aspect_ratio=imageWidth/imageHeight
if(aspect_ratio!==4/3 || aspect_ratio!==16/9){
this.notifyWarning(`Ideal banner aspect ratio sholud be 16:9 or 4:3 for better rendering`)
}
image.width=imageWidth
image.height=imageHeight
this.orgSetting.logoPath=dataUrl
}
this.orgSetting.logoPath=dataUrl
}
});
},
Expand Down

0 comments on commit 6401f80

Please sign in to comment.