Adjust dimensions for the qml components.

The plan is to rely on the QtQuick.Layouts instead of using anchors or
hardcoding dimensions.
Use QtQuick.Layouts instead of anchors.