#43 HTML and CSS changes to Social Card.
Closed 6 years ago by wildflower. Opened 6 years ago by wildflower.
wildflower/Fedora-app master  into  master

file modified
+19 -7
@@ -18,21 +18,33 @@ 

      <ion-card *ngFor="let update of updates" >

  

          <ion-row>

+          <!-- ion-col col-1 center>

+           <button ion-button small clear disabled class="s-icon">

+             <ion-icon name="logo-{{ update.origin }}"></ion-icon>

+           </button>

+         </ion-col> -->

+ 

+         <ion-item class="date">

+         <ion-datetime displayFormat="MM/DD/YYYY" [(ngModel)]="myDate"> {{ update.date }} </ion-datetime>

+         </ion-item>

+ 

          <ion-col tappable (click)="openUpdate(update)">

-           {{ update.content }}

+         {{ update.content }}

          </ion-col>

  

+ 

        </ion-row>

        <ion-row >

-         <ion-col center >

-           <button ion-button small clear disabled class="s-icon">

-             <ion-icon name="logo-{{ update.origin }}"></ion-icon>

-           </button>

+         <ion-col class="cta" (click)="openUpdate(update)" color="blue" font-weight="1.7">

+           View on {{ update.origin }} 

          </ion-col>

          <ion-col center>

-           <button ion-button small clear tappable color="dark" (click)="shareUpdate(update)">

+         <ion-col class="cta" (click)="shareUpdate(update)" color="dark">

+           Share

+         </ion-col>

+           <!-- <button ion-button small clear tappable color="dark" (click)="shareUpdate(update)">

              <ion-icon name="share"></ion-icon>

-           </button>

+           </button> -->

          </ion-col>

        </ion-row>

      </ion-card>

file modified
+29 -1
@@ -4,6 +4,7 @@ 

  }

  

  #social_logo{

+   height: 80px;

    z-index: 1;

    display:block;

    position:absolute;
@@ -15,7 +16,7 @@ 

  }

  

  #social_card{

-   margin-top: 80px !important;

+   margin-top: 60px !important;

  

  }

  
@@ -27,3 +28,30 @@ 

  .s-icon{

    float: left !important;

  }

+ 

+ .cta{

+   font-size: 1.2rem !important;

+   font-weight: 700 !important;

+   color: #294171 !important;

+ }

+ 

+ .date{

+   font-size: 1.2rem !important;

+   color: #999 !important;

+   font-weight: 700 !important;

+   padding: 0px !important;

+ }

+ 

+ .col{

+   padding: 9px !important;

+ }

+ 

+ ion-card {

+   background-color: #f4f4f4 !important;

+ }

+ 

+ .datetime-md {

+   padding: 8px !important;

+ }

+ 

+ 

Fixing Issue #26
Made CSS changes to Social updates. Also updated HTML to include the post dates in the updates.

@wildflower, please add a bug id (if exists), else create one and add it here.

Where are you fetching 'date' from ?

What if origin is 'Twitter' ?

@a2batic fetching the date with : {{ update.date }}

What if origin is 'Twitter' ?

I will have to fetch the source as well. It should say "View on {{source}}". Will make an update on this.

@a2batic fetching the date with : {{ update.date }}

@wildflower, can you point me to the file where update.date is being assigned ?

What if origin is 'Twitter' ?

I will have to fetch the source as well. It should say "View on {{source}}". Will make an update on this.

+1, {{update.origin}}

@wildflower, can you point me to the file where update.date is being assigned ?

It is currently there in main.js file, line no. 277.

1 new commit added

  • updated source of fetched updates
6 years ago

@wildflower, can you point me to the file where update.date is being assigned ?

It is currently there in main.js file, line no. 277.

@wildflower can you add a link here for that file ?

@a2batic I am unable to find the link.

The location on my system is: Fedora-app/www/build/main.js

Maybe it is coming from node files. I'll figure out and get back to you on this.

Pull-Request has been closed by wildflower

6 years ago