Changeset 140


Ignore:
Timestamp:
Sep 9, 2022, 9:54:26 PM (21 months ago)
Author:
chronos
Message:
  • Added: Better page scaling on mobile devices.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CoolWeb/Common/UHtmlClasses.pas

    r138 r140  
    554554          Attributes.Add('http-equiv', 'Content-Type');
    555555          Attributes.Add('content', 'text/html; charset=' + ContentEncoding);
     556        end;
     557        with SubElements.AddTag('meta') do begin
     558          Attributes.Add('name', 'viewport');
     559          Attributes.Add('content', 'width=device-width, initial-scale=1');
    556560        end;
    557561        for I := 0 to Styles.Count - 1 do
Note: See TracChangeset for help on using the changeset viewer.